@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
    font-size: 10px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: none;
    background: linear-gradient(315deg, #5de1e6 3%, #8b53fe 38%, #5de1e6 68%, #8b53fe 98%);
    animation: gradient 120s ease infinite;
    background-size: 300% 300%;
    background-attachment: fixed;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.wave {
    background: rgba(255, 255, 255, 0.171);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}

.form-bg {
    width: 100%;
    max-width: none;
    padding: 20px;
    margin: 0;
}

.form-container {
    background: linear-gradient(#5de1e6, #8b53fe);
    font-family: 'Roboto', sans-serif;
    border: 1px solid #f7f7f7;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 1.2);
    max-width: 2000px;
    min-height: 580px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.form-icon {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0 auto;
}

.form-icon img {
    max-width: 75%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.form-horizontal {
    background: rgb(255, 255, 255);
    width: 70%;
    padding: 5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.resta{
    background-color: #5bc5e8;
    font-size: 11px;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4),
                -10px -10px 20px rgba(255, 255, 255, 0.2);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: 0.1rem;
}

.resta:hover {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6),
                -5px -5px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    background-color: #5bc5e8;
    color: white;
}

.input-group {
    position: relative !important;
    border: none;
    box-shadow: 0 2px 12px rgba(132, 83, 254, 0.07);
    border-radius: 12px;
    overflow: visible !important;
    background: #f4f6fb;
    margin-bottom: 1.3rem;
    align-items: center;
    height: 42px;
}

.input-group .input-group-text {
    background: #f4f6fb;
    border: 1.5px solid #e0e0e0;
    color: #8453fe;
    font-size: 1.3rem;
    border-radius: 10px 0 0 10px !important;
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    transition: background 0.3s, border-color 0.3s;
}

.input-group .fa,
.input-group .fas,
.input-group .fab,
.input-group .fa-solid {
    font-size: 1.5em;
    color: #8453fe;
    vertical-align: middle;
    transition: color 0.3s;
}

.input-group .form-control,
.input-group .form-control.text-center {
    font-size: 1.4rem;
    border-radius: 0 10px 10px 0 !important;
    border: 1.5px solid #e0e0e0;
    background: #f4f6fb;
    height: 38px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.input-group:focus-within .input-group-text {
    background: #ede7fa;
    color: #5bc5e8;
    border-color: #8453fe;
}

.input-group:focus-within .form-control {
    border-color: #8453fe;
    background: #fff;
    box-shadow: 0 4px 16px rgba(132, 83, 254, 0.13);
}

.form-control {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #f4f6fb;
    color: #222;
    font-size: 1.4rem;
    padding: 8px 16px;
    transition: 
        border-color 0.3s,
        box-shadow 0.3s,
        background 0.3s;
    box-shadow: 0 2px 8px rgba(132, 83, 254, 0.06);
    height: 38px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-control:focus {
    border-color: #8453fe;
    background: #fff;
    outline: none;
    box-shadow: 0 4px 16px rgba(132, 83, 254, 0.13);
    animation: input-jelly-focus 0.8s ease-in-out;
}

.form-control::placeholder {
    color: #b0b0b0;
    font-size: 1.4rem;
    opacity: 1;
    font-style: italic;
    font-weight: 400;
}

.seccion {
    width: 60%;
    height: 30px;
    background-color: #8453fe;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4),
                -10px -10px 20px rgba(255, 255, 255, 0.2);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: 0.1rem;
}

.seccion:hover {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6),
                -5px -5px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    background-color: #5bc5e8;
    color: #8453fe;
}

.forgot-pass, .forgot-pass2 {
    text-align: center;
    margin-top: 1rem;
}

.forgot-pass a, .forgot-pass2 a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-pass a:hover, .forgot-pass2 a:hover {
    color: #5bc5e8;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 4000px) {
    .form-container {
        max-width: 3800px;
    }
}

@media (max-width: 3500px) {
    .form-container {
        max-width: 3300px;
    }
}

@media (max-width: 3000px) {
    .form-container {
        max-width: 2800px;
    }
}

@media (max-width: 2500px) {
    .form-container {
        max-width: 2300px;
    }
}

@media (max-width: 2000px) {
    .form-container {
        max-width: 1400px;
        width: 50%;
    }
}

@media (max-width: 1600px) {
    .form-container {
        max-width: 1000px;
        width: 65%;
    }
}

@media (max-width: 1200px) {
    .form-container {
        max-width: 800px;
        width: 65%;
    }
    .form-horizontal {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .form-container {
        max-width: 600px;
        width: 65%;
    }
    .form-horizontal {
        width: 100%;
    }

    .form-icon {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        height: auto;
        padding: 1rem;
        margin: 0;
        top: 0;
        max-width: none;
        border-radius: 15px;
        transform: scale(1);
        transition: all 0.3s ease;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .form-icon {
        width: 80%;
        padding: 1rem;
        margin: 0 auto 0.5rem;
        display: flex;
        justify-content: center;
    }

    .form-icon img {
        max-width: 280px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .form-horizontal {
        width: 100%;
        padding: 1.5rem;
        margin-top: 0;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.95);
    }

    .dispantitle {
        margin-top: 0.75rem !important;
    }

    .input-group {
        height: 45px;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .input-group-text {
        padding: 0.75rem 1rem;
        min-width: 45px;
        border-radius: 10px 0 0 10px;
    }

    .input-group .form-control,
    .input-group .form-control.text-center {
        font-size: 1.4rem;
        height: 38px;
        padding: 8px 12px;
        border-radius: 0 10px 10px 0 !important;
    }
    .input-group .input-group-text {
        font-size: 1.1rem;
        height: 38px;
        padding: 0 10px;
        border-radius: 10px 0 0 10px !important;
    }
    .input-group .input-group-append .input-group-text {
        border-radius: 0 10px 10px 0 !important;
        border-left: 0;
        font-size: 1.1rem;
        height: 38px;
        padding: 0 10px;
    }
    .input-group .input-group-prepend .input-group-text {
        border-radius: 10px 0 0 10px !important;
        border-right: 0;
        font-size: 1.1rem;
        height: 38px;
        padding: 0 10px;
    }

    .checkbox-profesional {
        font-size: 1rem;
        gap: 8px;
        padding: 4px 0;
    }
    .checkbox-custom {
        width: 20px;
        height: 20px;
    }
    .checkmark {
        width: 14px;
        height: 14px;
        stroke-width: 2.5;
    }
    .checkbox-label {
        font-size: 0.98rem;
    }

    .form-check-label {
        font-size: 13px;
    }

    /* Ajustes para el checkbox */
    .checke {
        width: 18px;
        height: 18px;
    }

    .logo_vibra{
        margin-top: 20px;
    }
}

/* Mantener las animaciones de las olas y el gradiente existentes */

/* Animación de entrada */
.flip-vertical-fwd-in {
    animation: flip-vertical-fwd-in 0.5s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

@keyframes flip-vertical-fwd-in {
    0% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0);
        opacity: 1;
    }
}

/* Animación de salida */
.flip-vertical-fwd-out {
    animation: flip-vertical-fwd-out 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

@keyframes flip-vertical-fwd-out {
    0% {
        transform: rotateY(0);
        opacity: 1;
    }
    100% {
        transform: rotateY(180deg);
        opacity: 0;
    }
}

/* Ocultamos el checkbox original */
#rememberMe {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 2px solid #ccc;
    background-color: white;
    cursor: pointer;
    transition: 0.3s;
}

/* Cambiamos el color cuando está marcado */
#rememberMe:checked {
    border: 1px solid #454545;
}

/* Opcional: Agregar un ícono de check */
#rememberMe:checked::before {
    content: '✓';
    color: rgb(0, 0, 0);
    font-size: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    width: 100%;
    height: 100%;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px #f4f6fb inset !important;
    -webkit-text-fill-color: #222 !important;
    border-radius: 10px;
}

.input-restablecer {
    width: 100%;
    min-width: 320px;
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

#Restablecerlogin .input-group {
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo profesional para el checkbox personalizado */
.checkbox-profesional {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 1.15rem;
    font-weight: 500;
    color: #222;
    transition: color 0.3s;
    padding: 6px 0;
}

.checkbox-profesional input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #8453fe;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 8px rgba(132, 83, 254, 0.10);
    position: relative;
}

.checkbox-profesional:hover .checkbox-custom {
    border-color: #5bc5e8;
    box-shadow: 0 4px 12px rgba(91, 197, 232, 0.15);
    background: #f4f6fb;
}

.checkmark {
    width: 16px;
    height: 16px;
    stroke: #8453fe;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

.checkbox-profesional input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #5bc5e8;
    background: #eafafd;
    animation: jelly 0.6s ease;
}

.checkbox-profesional input[type="checkbox"]:checked + .checkbox-custom .checkmark {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: 1.08rem;
    color: #222;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

.checkbox-profesional input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 2px #8453fe33;
    outline: none;
}

.form-control, .input-group-text, .checkbox-profesional, .checkbox-profesional span {
    font-family: 'Inter', 'Roboto', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.input-group #togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 10 !important;
    padding: 0 6px;
    color: #8453fe;
    font-size: 1.3rem;
    transition: color 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
}

.input-group #togglePassword:hover {
    color: #5bc5e8;
}

.input-group #togglePassword:active {
    color: #222;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    background: #f4f6fb;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(132, 83, 254, 0.06);
    font-size: 1.4rem;
    padding: 8px 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    background: #fff;
    border-color: #8453fe;
    outline: none;
    box-shadow: 0 4px 16px rgba(132, 83, 254, 0.13);
    position: relative;
}

.input-group input[type="password"] {
    padding-right: 40px !important;
}

/* Oculta el botón nativo de mostrar/ocultar contraseña en Edge/Chrome */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-input-decoration,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-reveal-button {
    display: none !important;
}

#togglePassword.btn {
    border-color: #e0e0e0;
    color: #8453fe;
    background: #f4f6fb;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
#togglePassword.btn:hover {
    color: #5bc5e8;
    border-color: #8453fe;
    background: #fff;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0 !important;
}
.input-group .form-control.text-center {
    border-radius: 10px !important;
}
.input-group .input-group-text {
    border-radius: 10px 0 0 10px !important;
}
.input-group .input-group-append .btn {
    border-radius: 0 10px 10px 0 !important;
}

.input-group .input-group-append .input-group-text {
    border-radius: 0 10px 10px 0 !important;
    border-left: 0;
}

.input-group .input-group-prepend .input-group-text {
    border-radius: 10px 0 0 10px !important;
    border-right: 0;
}

@keyframes jelly {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1, 0.9);
    }
    50% {
        transform: scale(0.9, 1.1);
    }
    75% {
        transform: scale(1.05, 0.95);
    }
}

@keyframes input-jelly-focus {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(132, 83, 254, 0.13);
    }
    25% {
        transform: scale(1.01, 0.99);
        box-shadow: 0 5px 18px rgba(132, 83, 254, 0.15);
    }
    50% {
        transform: scale(0.99, 1.01);
        box-shadow: 0 6px 20px rgba(132, 83, 254, 0.2);
    }
    75% {
        transform: scale(1.005, 0.995);
        box-shadow: 0 5px 18px rgba(132, 83, 254, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(132, 83, 254, 0.13);
    }
}

.microsoft-login-btn {
    background-color: #2F2F2F;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4),
                -10px -10px 20px rgba(255, 255, 255, 0.2);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 38px;
    font-size: 1.1rem;
    width: 100%;
}

.microsoft-login-btn .fab.fa-microsoft {
    font-size: 1.2em;
    color: #ffffff;
    margin-left: 20px;
}

.microsoft-login-btn span:last-child {
    flex-grow: 1;
    text-align: center;
    margin-right: 20px;
}

.microsoft-login-btn:hover {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6),
                -5px -5px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    background-color: #404040;
    color: #ffffff;
}