/*
 * Pantalla de login.
 * Solo contiene lo propio del login: fondo, branding y medida de la tarjeta.
 * Los campos, switch, botón y tarjeta usan los componentes reutilizables
 * de la app (x-form.input, x-form.switch, x-button, x-card).
 */

body.login-page {
    display: block;
    min-height: 100vh;
    background-color: #050b2c;
    background-image:
        linear-gradient(180deg, rgba(3, 10, 40, 0.35) 0%, rgba(3, 7, 30, 0.62) 100%),
        url('../img/theme/edsoft-login-bg.webp?v=4');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2.5rem 1rem;
}

/* ---------------------------------------------------------------- Branding */

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-welcome {
    margin: 0 0 0.75rem;
    font-size: clamp(1.4rem, 2.9vw, 1.95rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.login-brand-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.login-logo {
    width: clamp(68px, 8.5vw, 100px);
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.45));
}

.login-brand-text {
    text-align: left;
}

.login-brand-name {
    margin: 0;
    font-size: clamp(2.4rem, 5.4vw, 3.7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 22px rgba(120, 145, 255, 0.55);
}

.login-brand-sub {
    margin: 0.45rem 0 0;
    font-size: clamp(0.75rem, 1.3vw, 0.98rem);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(198, 211, 255, 0.92);
}

.login-brand-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: min(100%, 420px);
    margin-top: 1rem;
}

.login-brand-slogan p {
    flex: 0 0 auto;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(215, 225, 255, 0.95);
    text-shadow: 0 0 14px rgba(101, 126, 255, 0.55);
}

.login-brand-slogan-line {
    flex: 1 1 0;
    max-width: 88px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(170, 190, 255, 0.65));
}

.login-brand-slogan-line:last-child {
    background: linear-gradient(90deg, rgba(170, 190, 255, 0.65), transparent);
}

/* ------------------------------------------------------------------- Tarjeta */

body.login-page .login-card {
    width: 100%;
    max-width: 440px;
    background: #f8f9ff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.login-page .login-card-body {
    padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

.login-card-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.login-card-title {
    margin: 0;
    font-size: clamp(1.55rem, 2.9vw, 1.95rem);
    font-weight: 800;
    color: #1b2350;
}

.login-card-underline {
    display: block;
    width: 96px;
    height: 2px;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b5bf6, #7b3ff2);
}

/* -------------------------------------------------------------------- Footer */

.login-footer {
    margin: 1.4rem 0 0;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: rgba(202, 212, 245, 0.75);
    text-align: center;
}

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 575.98px) {
    .login-shell {
        padding: 1.75rem 1rem;
    }

    .login-brand {
        margin-bottom: 1.35rem;
    }

    .login-brand-main {
        gap: 0.7rem;
    }

    .login-brand-sub {
        letter-spacing: 0.16em;
    }

    body.login-page .login-card {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.login-page {
        background-attachment: scroll;
    }
}
