.login {
    min-height: 100vh;
    display: flex;
    background-color: var(--iv-card-bg);
    overflow: hidden;
    position: relative;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--iv-card-bg);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.login.login--otp::before {
    opacity: 1;
}

.login__contenedor {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.login__panel-formulario {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: radial-gradient(circle at 10% 10%, rgba(0, 159, 227, 0.02) 0%, transparent 60%);
    animation: fadeInForm 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.login__panel-formulario--centrado {
    flex: 1;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login__inner {
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.login__tarjeta {
    position: relative;
}

.login__error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    justify-content: center;
    position: absolute;
    bottom: -3.5rem;
    left: 0;
    right: 0;
}

.login__footer-desktop {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--iv-text-muted);
    font-size: 0.8rem;
    z-index: 10;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.login.login--otp .login__footer-desktop {
    width: 100%;
}

.login__footer-desktop-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.login__footer-desktop-dot {
    width: 3px;
    height: 3px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
}

.login__footer-mobile {
    display: none;
}

@media (max-width: 768px) {
    .login {
        height: 100dvh;
    }

    .login__footer-desktop {
        display: none;
    }

    .login__contenedor {
        flex-direction: column;
        height: 100%;
        display: flex;
        background: none;
    }

    .login__panel-formulario {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        background: none;
        animation: none;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .login__inner {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        flex: 1 0 auto;
        min-height: 100%;
        box-sizing: border-box;
        padding-top: 1.5rem;
    }

    .login__tarjeta {
        background-color: var(--iv-card-bg);
        border-radius: 0;
        padding: 0.25rem 1.75rem 1.5rem;
        margin-top: 0;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        z-index: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        flex: 1 0 auto;
        box-sizing: border-box;
        justify-content: center;
    }

    .login__footer-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        color: var(--iv-text-secondary);
        font-size: 0.75rem;
        text-align: center;
        margin-top: auto;
        padding-top: 1.5rem;
        padding-bottom: 0.5rem;
    }

    .login__footer-links {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-weight: 700;
    }

    .login__footer-dot {
        width: 4px;
        height: 4px;
        background-color: currentColor;
        border-radius: 50%;
        display: inline-block;
    }

    .login__error {
        position: relative;
        bottom: auto;
        margin-top: 1rem;
        margin-bottom: -1rem;
        z-index: 2;
    }

    .login__panel-formulario--centrado .login__tarjeta {
        border-radius: 0;
        flex: 1;
        justify-content: center;
        padding: 2rem 1.75rem;
        margin-top: 0;
        box-shadow: none;
        min-height: auto;
    }
}

.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 4px !important;
    right: auto !important;
    z-index: 90000 !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;

}