@keyframes spinner {to{transform: rotate(1turn)}}

@keyframes pulse-opacity {
    0% {
      opacity: 0.8;
    }
    50% {
      opacity: 0.4;
    }
    100% {
      opacity: 0.8;
    }
}

body {
    font-family: Roboto, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100svh;
    gap: 216pxpx;
    box-sizing: border-box;
    padding: 32px;
}

.flex{
    display: flex!important;
}
.flex-row{
    flex-direction: row!important;
}
.items-center{
    align-items: center!important;
}
.justify-center{
    justify-content: center!important;
}
.m-auto{
    margin: auto!important;
}
.gap-2{
    gap: 8px!important;
}

.displayNone{
    display: none!important;
}

.container {
    width: 100%;
    max-width: 300px; 
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    background-color: white;
    padding: 32px;
    border-radius: 4px;
}

.loader-small{
    display: block;
    width: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    border-right-color: rgba(255,255,255,1);
    animation: spinner 1s infinite linear;
}

h1 { 
    color: #333;
    margin: 0px;
    text-align: center;
    margin-top:32px;
    font-size:20px;
}

h3 { 
    color: #999;
    margin: 0px;
    text-align: center;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    max-width: 900px;
}

p {
    font-size: 18px;
    color: #555;
}

.success {
    color: green;
}

.error {
    color: red;
}

form{
    width: 100%;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

form.pulse{
    pointer-events: none;
    cursor: not-allowed;
    animation: pulse-opacity 1.5s infinite;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container.full,
.acceptance,
.profile-pic{
    grid-column: 1 / -1!important;
}

.acceptance,
.profile-pic{
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
}

.profile-pic{
    flex-direction: column;
    align-items: start!important;
    position: relative;
}

.profile-pic img{
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-pic span.error{
    color: #bb0000;
}

.profile-pic input{
    display: none;
}

.input-container input,
.input-container textarea,
.input-container select{
    width: calc(100% - 24px);
    padding: 9px 13px;
    border: 1px solid lightgrey;
    border-radius: 4px;
    font-size: 14px;
    line-height: 24px;
    color: black;
}

.input-container input:focus,
.input-container textarea:focus,
.input-container select:focus,
.input-container input:focus-visible,
.input-container textarea:focus-visible,
.input-container select:focus-visible{
    border: 1px solid #2563eb;
    outline: 1px solid #2563eb!important;
}

.input-container.flatpickr input{
    padding-left: 42px;
    width: calc(100% - 54px);
}

.input-container.flatpickr label{
    padding-left: 32px;
}

.input-container.flatpickr::after{
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    bottom: 10px;
    left: 11px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23155dfc' viewBox='0 0 256 256'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-68-76a12,12,0,1,1-12-12A12,12,0,0,1,140,132Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,132ZM96,172a12,12,0,1,1-12-12A12,12,0,0,1,96,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,172Z'%3E%3C/path%3E%3C/svg%3E");
}

.input-container select{
    width: 100%!important;
    color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-container select::-ms-expand {
    display: none;
}

.input-container.select::after{
    transition: 0.3s ease-in-out;
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    bottom: 9px;
    right: 10px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cpolyline points='208 96 128 176 48 96' fill='none' stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E");
}

.input-container.active input,
.input-container.active textarea,
.input-container.active select{
    border: 1px solid #2563eb;
}

.input-container.active select{
    color: black;
}

.input-container.active input:focus,
.input-container.active input:focus-visible{
   outline: 0px!important;
}

.input-container.disabled{
    pointer-events: none;
    cursor: not-allowed!important;
}

.input-container label {
    position: absolute;
    top: 9px;
    left: 10px;
    pointer-events: none;
    color: #999;
    transition: 0.4s;
    padding: 4px;
    font-size:14px;
}

.input-container.active label{
    position: absolute;
    top: -14px;
    left: 10px;
    pointer-events: none;
    color: #2563eb;
    padding: 4px;
    background: white;
    border-radius: 6px;
}

.input-container.disabled.active input{
    border: 1px solid #d2d2d2;
    color: #9b9b9b;
}

.input-container.disabled.active label{
    color: #d2d2d2;
}

.input-container .eye{
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cpath d='M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Ccircle cx='128' cy='128' r='40' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E");
    background-size: cover;
    position: absolute;
    cursor: pointer;
    right: 9px;
    top: 9px;
}

.input-container .eye.closed{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cline x1='48' y1='40' x2='208' y2='216' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpath d='M154.91,157.6a40,40,0,0,1-53.82-59.2' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpath d='M135.53,88.71a40,40,0,0,1,32.3,35.53' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpath d='M208.61,169.1C230.41,149.58,240,128,240,128S208,56,128,56a126,126,0,0,0-20.68,1.68' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cpath d='M74,68.6C33.23,89.24,16,128,16,128s32,72,112,72a118.05,118.05,0,0,0,54-12.6' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E");
}

.acceptance label,
.profile-pic label{
    color: #999;
    text-align: left;
}

.acceptance label a{
    color: #bb0000;
    transition: 0.4s;
}

.acceptance label a:hover{
    color: #3b82f6;
}

.profile-pic span{
    color: #999;
    font-size: 14px;
    line-height: 18px;
    text-align: left;
}


.profile-pic .error-message{
    color: #bf0000;
}

.aval{
    margin: 0px;
    text-align: left;
    grid-column: 1 / -1!important;
    font-size: 16px;
    color: black;
}

.aval .aval-mail{
    font-size: 14px;
    color: #999;
}
.btn-secondary {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none; /* Elimina el borde al hacer foco */
  color:#bb0000;
  font-size: 14px;
}
.btn-secondary:hover {
  text-decoration: underline;
}

.btn{
    transition: 0.3s ease-in-out;
    border-radius: 4px;
    padding: 12px 20px;
    color: white;
    background: #bb0000;
    cursor: pointer;
    text-align: center;
    color: white;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    border: 0px;
    grid-column: 1 / -1!important;
    display: flex;
    justify-content: center;
}

.btn:hover{
    opacity:0.8;
}

.toast{
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: #bbf7d0;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 9;
}

.toast.ok{
    background: #bbf7d0;
}

.toast.ko{
    background: #fecaca;
}

.toast span{
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.toast.ok span{
    background: #064e3b;
}

.toast.ko span{
    background: #991b1b;
}

.toast span::after{
    content: '';
    background-size: cover;
    width: 24px;
    height: 24px;
}

.toast.ok span::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cpath fill='white' d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
}

.toast.ko span::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cpath fill='white' d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z'/%3E%3C/svg%3E");
}

.toast p{
    color: black;
    font-size: 16px;
    margin: 0px;
}
small {
   color: grey;
    font-size: 12px;
    margin: 0px;
}

@media only screen and (max-width: 767px) {
    form{
        grid-template-columns: repeat(1, 1fr);
    }

    .acceptance{
        flex-direction: column;
        align-items: start!important;
    }
  }