/* Estilos exclusivos del inicio de sesión. */
body:has(.login-shell) {
    background: linear-gradient(145deg, #eef5fc 0%, #ffffff 48%, #e6f0fc 100%);
    padding: 0;
    color: #172b4d;
}

body:has(.login-shell) .header {
    display: none;
}

body:has(.login-shell) .container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.login-shell {
    display: grid;
    min-height: calc(100vh - 2rem);
    place-items: center;
}

.login-panel {
    width: min(100%, 27rem);
    padding: clamp(1.75rem, 6vw, 3rem);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(0, 87, 184, .12);
    border-radius: 1.5rem;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 54, 120, .14);
}

.login-brand {
    position: relative;
    display: grid;
    width: min(100%, 14rem);
    min-height: 5.3rem;
    margin: 0 auto 1.5rem;
    place-items: center;
}

.brand-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    animation: logo-settle .7s ease-out both;
}

.brand-orbit {
    position: absolute;
    width: 4.2rem;
    height: 4.2rem;
    border: 2px solid rgba(0, 87, 184, .18);
    border-top-color: #0057b8;
    border-radius: 50%;
    animation: orbit 7s linear infinite;
}

.login-intro {
    text-align: center;
}

.login-kicker {
    display: inline-block;
    margin-bottom: .45rem;
    color: #0057b8;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.login-intro h1 {
    margin: 0;
    color: #172b4d;
    font-size: clamp(1.7rem, 7vw, 2rem);
    line-height: 1.15;
}

.login-intro p {
    margin: .75rem auto 1.5rem;
    color: #61718d;
    font-size: .93rem;
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.login-field {
    width: 100%;
    text-align: left;
}

.login-field label {
    display: block;
    margin-bottom: .45rem;
    color: #31415e;
    font-size: .86rem;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    display: grid;
    width: 1.1rem;
    height: 1.1rem;
    color: #6081ad;
    pointer-events: none;
    place-items: center;
    transform: translateY(-50%);
}

.input-icon svg,
.login-submit svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.login-panel .input-login {
    width: 100%;
    min-height: 3.1rem;
    padding: .75rem .85rem .75rem 2.9rem;
    border: 1px solid #d5dfed;
    border-radius: .75rem;
    background: #fff;
    color: #172b4d;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-panel .input-login::placeholder {
    color: #91a0b7;
}

.login-panel .input-login:focus {
    border-color: #0057b8;
    box-shadow: 0 0 0 .22rem rgba(0, 87, 184, .13);
}

.login-panel .login-submit {
    display: inline-flex;
    width: 100%;
    min-height: 3.1rem;
    margin: .35rem 0 0;
    padding: .75rem 1rem;
    border: 0;
    border-radius: .75rem;
    background: linear-gradient(135deg, #0064c9, #004ca2);
    box-shadow: 0 .65rem 1.25rem rgba(0, 87, 184, .22);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    transform: none;
}

.login-panel .login-submit:hover,
.login-panel .login-submit:focus-visible {
    background: linear-gradient(135deg, #0874df, #0057b8);
    box-shadow: 0 .8rem 1.5rem rgba(0, 87, 184, .28);
    transform: translateY(-1px);
}

.login-submit svg {
    width: 1.1rem;
    height: 1.1rem;
}

.login-panel .password-link {
    color: #0057b8;
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}

.login-panel .password-link:hover {
    color: #003f87;
}

.login-message {
    margin-top: 1rem;
    padding: .8rem .9rem;
    border: 1px solid #f2c7c7;
    border-radius: .7rem;
    background: #fff4f4;
    color: #9b2424;
    font-size: .88rem;
    line-height: 1.4;
    white-space: pre-line;
}

.login-help {
    margin: 1.5rem 0 0;
    color: #74829a;
    font-size: .77rem;
    line-height: 1.45;
    text-align: center;
}

@keyframes logo-settle {
    from { opacity: 0; transform: translateY(-.5rem) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes orbit {
    to { transform: rotate(360deg); }
}

@media (min-width: 48rem) {
    body:has(.login-shell) .container {
        padding: 2rem;
    }

    .login-shell {
        min-height: calc(100vh - 4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo,
    .brand-orbit {
        animation: none;
    }
}
