/* ===========================================================
   LOGIN — pantalla propia, con look "tarjeta partida".
   Todo con clases login-* para no pisar estilos globales
   usados por el resto de las pantallas (styles.css).
   =========================================================== */

.login-page-body {
    min-height: 100vh;
    display: block;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.35), transparent 45%),
        linear-gradient(135deg, #8482c9 0%, var(--color-primary) 45%, var(--color-secondary) 100%);
    overflow-x: hidden;
}

.login-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Manchas decorativas de fondo */
.login-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    pointer-events: none;
    z-index: 0;
}

.login-blob--a {
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.08);
    top: -120px;
    left: -120px;
}

.login-blob--b {
    width: 460px;
    height: 460px;
    background: rgba(57, 55, 120, 0.35);
    bottom: -180px;
    right: -140px;
}

/* Tarjeta principal, partida en dos paneles */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    min-height: 560px;
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 30px 60px -20px rgba(30, 27, 75, 0.45);
    display: flex;
    overflow: hidden;
}

/* ---------- Panel izquierdo: formulario ---------- */
.login-form-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 48px 56px 32px;
}

.login-brand {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.login-brand-logo {
    height: 48px;
    width: auto;
}

.login-form-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.login-form-panel-content h1 {
    text-align: center;
    color: var(--color-text);
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.login-subtitle {
    text-align: center;
    color: #64748b;
    margin: 0 0 28px;
}

.login-form-panel-content form {
    width: 100%;
}

.login-form-panel-content .form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    margin-bottom: 18px;
}

.login-form-panel-content .form-group label {
    display: block;
    align-self: flex-start;
    margin-left: 4px;
    margin-bottom: 6px;
}

.login-form-panel-content .form-group input {
    width: 100%;
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: 13px 20px;
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
    forced-color-adjust: none;
}

.login-form-panel-content .form-group input::placeholder {
    color: #94a3b8;
}

.login-form-panel-content .form-group input:focus {
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(112, 110, 177, 0.18);
}

.login-form-panel-content .primary-btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
    forced-color-adjust: none;
}

.login-footnote {
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
    margin: 24px 0 0;
}

/* ---------- Panel derecho: marca / bienvenida ---------- */
.login-brand-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    position: relative;
}

.login-brand-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 12px;
}

.login-brand-title {
    font-size: 1.7rem;
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 14px;
}

.login-brand-copy {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    max-width: 320px;
    margin: 0 0 32px;
}

.login-illustration {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 8px auto 0;
    display: block;
}

.login-flow-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 2;
    stroke-linecap: round;
}

.login-flow-dot {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

.login-node {
    opacity: 0;
    transform: translateY(10px);
    transform-box: fill-box;
    transform-origin: center;
    animation: login-node-in 0.6s ease forwards;
}

.login-node--1 { animation-delay: 0.1s; }
.login-node--2 { animation-delay: 0.35s; }
.login-node--3 { animation-delay: 0.6s; }
.login-node--4 { animation-delay: 0.85s; }

@keyframes login-node-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-dot {
    animation: login-dot-float 3.5s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.login-dot--slow {
    animation-duration: 5s;
    animation-delay: 0.5s;
}

@keyframes login-dot-float {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-8px); opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .login-brand-panel {
        display: none;
    }

    .login-card {
        max-width: 440px;
    }

    .login-form-panel {
        padding: 40px 32px 28px;
    }
}
