/* ============================================================
   LOGIN — Hunter Gestión de Soportes (diseño ElixIA)
   Fondo página: degradado espacial azul/morado
   Fondo tarjeta (.login-frame): images/FondoElixIA.png
   ============================================================ */

:root {
    /* Paleta Elixir: azul profundo + violeta (sin verde/turquesa) */
    --login-bg: #080660;
    --login-bg-space: linear-gradient(152deg,
        #080660 0%,
        #0e0c78 28%,
        #1a1488 52%,
        #4a2288 78%,
        #0a0868 100%);
    --login-frame: #0e0c70;
    --login-accent-start: #121080;
    --login-accent-end: #2D3FA3;
    --login-accent-cyan: #6EC6F5;
    --login-accent-violet: #7226B9;
    --login-accent-violet-light: #B266E5;
    --login-accent-blue: #2D3FA3;
    --login-accent-blue-light: #6EC6F5;
    --login-text: #FFFFFF;
    --login-text-muted: #C4C0DC;
    --login-radius-frame: 28px;
    --login-radius-card: 24px;
    --login-radius-input: 14px;
    --login-card: rgba(14, 12, 96, 0.82);
    --login-card-text: #FFFFFF;
    --login-card-muted: #C4C0DC;
    --login-input-border: rgba(178, 102, 229, 0.28);
    --login-input-bg: rgba(10, 8, 88, 0.88);
    --login-input-icon: #C4C0DC;
    --login-input-placeholder: #9CA3AF;
    --login-eyebrow: #B266E5;
    --login-help-border: rgba(114, 38, 185, 0.3);
    --login-shadow-card: 0 0 0 1px rgba(178, 102, 229, 0.16) inset,
                         0 28px 56px rgba(0, 0, 0, 0.48),
                         0 0 36px rgba(45, 63, 163, 0.14);
    --login-alert-bg: rgba(255, 150, 61, 0.12);
    --login-alert-border: rgba(255, 199, 110, 0.35);
    --login-alert-text: #FFC76E;
    --login-alert-btn-bg: rgba(14, 12, 96, 0.85);
    --login-error-bg: rgba(255, 107, 107, 0.12);
    --login-error-border: rgba(255, 107, 107, 0.35);
    --login-error-text: #FF6B6B;
    --login-focus-ring: rgba(110, 198, 245, 0.35);
}

/* Evita recorte del listbox / overflow en layout guest */
body:has(.login-page),
.theme-settings-panel:has(.login-page),
.main-content:has(.login-page),
.body-content:has(.login-page),
.app-shell:has(.login-page),
.app-shell--guest,
.app-shell--guest .app-main,
.app-shell--guest .body-content {
    overflow: visible !important;
    background: var(--login-bg) !important;
    background-image: var(--login-bg-space) !important;
}

.app-shell--guest .app-main {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
}

.app-shell--guest .body-content {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ====================== SHELL ====================== */
.login-page {
    position: relative;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: var(--login-text);
    box-sizing: border-box;
    overflow-x: hidden;
}

.login-page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: var(--login-bg);
    background-image:
        radial-gradient(ellipse 70% 55% at 18% 22%, rgba(114, 38, 185, 0.42) 0%, transparent 58%),
        radial-gradient(ellipse 60% 48% at 82% 78%, rgba(178, 102, 229, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 48% 40% at 50% 48%, rgba(18, 16, 128, 0.35) 0%, transparent 62%),
        radial-gradient(ellipse 40% 34% at 70% 14%, rgba(114, 38, 185, 0.22) 0%, transparent 55%),
        var(--login-bg-space);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Aureolas violetas animadas (paleta Elixir) */
.login-aura {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    will-change: transform, opacity;
}

.login-aura--a {
    width: min(58vw, 720px);
    height: min(58vw, 720px);
    top: -18%;
    left: -12%;
    background:
        radial-gradient(circle at 40% 40%,
            rgba(178, 102, 229, 0.55) 0%,
            rgba(114, 38, 185, 0.28) 38%,
            transparent 68%);
    animation: login-aura-drift-a 16s ease-in-out infinite alternate;
}

.login-aura--b {
    width: min(48vw, 560px);
    height: min(48vw, 560px);
    right: -10%;
    bottom: -14%;
    background:
        radial-gradient(circle at 55% 45%,
            rgba(114, 38, 185, 0.48) 0%,
            rgba(45, 63, 163, 0.22) 42%,
            transparent 70%);
    animation: login-aura-drift-b 20s ease-in-out infinite alternate;
}

.login-aura--c {
    width: min(36vw, 420px);
    height: min(36vw, 420px);
    top: 38%;
    left: 42%;
    background:
        radial-gradient(circle,
            rgba(178, 102, 229, 0.32) 0%,
            rgba(114, 38, 185, 0.14) 45%,
            transparent 72%);
    animation: login-aura-pulse 12s ease-in-out infinite;
}

.login-aura--d {
    width: min(28vw, 320px);
    height: min(28vw, 320px);
    top: 8%;
    right: 18%;
    background:
        radial-gradient(circle,
            rgba(178, 102, 229, 0.4) 0%,
            rgba(18, 16, 128, 0.12) 50%,
            transparent 72%);
    animation: login-aura-drift-d 14s ease-in-out infinite alternate;
}

@keyframes login-aura-drift-a {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
    100% { transform: translate(6%, 8%) scale(1.08); opacity: 1; }
}

@keyframes login-aura-drift-b {
    0%   { transform: translate(0, 0) scale(1.05); opacity: 0.75; }
    100% { transform: translate(-8%, -6%) scale(1); opacity: 1; }
}

@keyframes login-aura-drift-d {
    0%   { transform: translate(0, 0) scale(0.95); opacity: 0.7; }
    100% { transform: translate(-10%, 12%) scale(1.12); opacity: 0.95; }
}

@keyframes login-aura-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.55; }
    50%      { transform: scale(1.12); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
    .login-aura {
        animation: none !important;
    }
}

.login-page__overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 110% 90% at 50% 50%, transparent 40%, rgba(8, 6, 48, 0.35) 100%);
}

.login-page--loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--login-text);
    z-index: 2;
}

/* ====================== TARJETA INTERMEDIA (fondo FondoElixIA) ====================== */
.login-frame {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    min-height: min(700px, calc(100dvh - 2.5rem));
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    background-color: #161636;
    background-image: url('images/HunterFondoElixIA.webp');
    background-size: cover;
    background-position: 20% 78%;
    background-repeat: no-repeat;
    border-radius: var(--login-radius-frame);
    border: 1px solid rgba(110, 198, 245, 0.14);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 40px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.login-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(8, 6, 96, 0.62) 0%,
            rgba(8, 6, 96, 0.18) 38%,
            rgba(8, 6, 96, 0.1) 55%,
            rgba(8, 6, 96, 0.42) 100%),
        linear-gradient(180deg,
            rgba(8, 6, 96, 0.25) 0%,
            transparent 30%,
            rgba(5, 5, 26, 0.2) 100%);
}

/* Anillos / aureolas dentro del frame */
.login-brand__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}

.login-brand__orb--1 {
    width: 360px;
    height: 360px;
    top: -90px;
    left: -70px;
    border: 1px solid rgba(178, 102, 229, 0.35);
    background: radial-gradient(circle, rgba(114, 38, 185, 0.22) 0%, transparent 70%);
    box-shadow: 0 0 60px rgba(114, 38, 185, 0.2);
    animation: login-orb-spin 28s linear infinite;
}

.login-brand__orb--2 {
    width: 240px;
    height: 240px;
    bottom: 100px;
    left: 36px;
    border: 1px solid rgba(178, 102, 229, 0.28);
    background: radial-gradient(circle, rgba(178, 102, 229, 0.12) 0%, transparent 68%);
    animation: login-orb-spin 22s linear infinite reverse;
}

.login-brand__orb--3 {
    width: 56px;
    height: 56px;
    top: 36%;
    right: 50%;
    background: rgba(178, 102, 229, 0.42);
    box-shadow:
        0 0 24px rgba(178, 102, 229, 0.55),
        0 0 48px rgba(114, 38, 185, 0.35);
    animation: login-orb-glow 4.5s ease-in-out infinite;
}

@keyframes login-orb-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes login-orb-glow {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50%      { opacity: 0.9; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .login-brand__orb--1,
    .login-brand__orb--2,
    .login-brand__orb--3 {
        animation: none !important;
    }
}

.login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(200px, 1fr) minmax(0, 440px);
    grid-template-rows: 1fr;
    min-height: min(620px, calc(100dvh - 8rem));
    padding: 2.25rem 2.5rem 1.5rem;
    box-sizing: border-box;
    column-gap: 0.25rem;
    align-items: stretch;
}

/* Zona central: reserva espacio para el personaje (visible en FondoElixIA del frame) */
.login-hero-zone {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-height: 320px;
    max-height: 58vh;
    pointer-events: none;
}

.change-pwd-page .login-frame {
    max-width: 480px;
    min-height: auto;
    background-position: 30% center;
}

.change-pwd-page .login-panel {
    grid-column: 1;
    padding: 2rem;
}

/* ====================== PANEL IZQUIERDO ====================== */
.login-brand {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    padding: 0.25rem 0 0.5rem;
    z-index: 3;
}

.login-brand__content {
    max-width: 400px;
}

.login-brand__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.login-logo {
    width: 4.5rem;
    height: 4.5rem;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    box-shadow: none;
}

.login-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

.login-brand__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.login-brand__name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--login-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.login-brand__tagline {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6EC6F5;
}

.login-brand__headline {
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 800;
    color: var(--login-text);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    max-width: 380px;
}

.login-brand__headline-accent {
    background: linear-gradient(90deg, #B266E5 0%, #6EC6F5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-brand__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 1.5rem;
    max-width: 380px;
}

.login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    max-width: 380px;
}

.login-features__item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.login-features__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(18, 16, 128, 0.28);
    border: 1px solid rgba(22, 182, 220, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6EC6F5;
}

.login-features__icon svg {
    width: 20px;
    height: 20px;
}

.login-features__text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--login-text);
    margin-bottom: 0.15rem;
}

.login-features__text span {
    font-size: 0.8125rem;
    color: var(--login-text-muted);
    line-height: 1.45;
}

.login-brand__security {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-top: auto;
    padding: 1rem 1.15rem;
    max-width: 380px;
    border-radius: 16px;
    background: rgba(18, 16, 128, 0.42);
    border: 1px solid rgba(110, 198, 245, 0.16);
    backdrop-filter: blur(8px);
}

.login-brand__security-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 16, 128, 0.35);
    color: #6EC6F5;
}

.login-brand__security-icon svg {
    width: 18px;
    height: 18px;
}

.login-brand__security-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.login-brand__security-text strong {
    display: block;
    color: var(--login-text);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

/* ====================== PANEL DERECHO (FORM) ====================== */
.login-panel {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 0;
    z-index: 4;
}

.login-form-card {
    width: 100%;
    max-width: 420px;
    background: var(--login-card);
    border-radius: var(--login-radius-card);
    border: 1px solid rgba(110, 198, 245, 0.14);
    box-shadow: var(--login-shadow-card);
    padding: 2.5rem 2.25rem 2rem;
    position: relative;
}

.login-form__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--login-eyebrow);
    margin-bottom: 0.65rem;
}

.login-form__eyebrow svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.login-form__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--login-card-text);
    letter-spacing: -0.03em;
    margin: 0 0 0.375rem;
    line-height: 1.15;
}

.login-form__subtitle {
    font-size: 0.875rem;
    color: var(--login-card-muted);
    margin: 0 0 1.75rem;
    line-height: 1.5;
}

/* Campos */
.login-field {
    margin-bottom: 1.25rem;
}

.login-field__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--login-card-text);
    margin-bottom: 0.5rem;
}

.login-input {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--login-input-icon);
    display: flex;
    pointer-events: none;
    z-index: 2;
}

.login-input__icon svg {
    width: 18px;
    height: 18px;
}

.login-input__field {
    width: 100%;
    height: 52px;
    padding: 0 3rem 0 1rem;
    border: 1.5px solid var(--login-input-border);
    border-radius: var(--login-radius-input);
    background: var(--login-input-bg);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--login-card-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.login-input__field::placeholder {
    color: var(--login-input-placeholder);
}

.login-input__field:focus {
    border-color: var(--login-accent-end);
    background: rgba(10, 8, 104, 0.88);
    box-shadow: 0 0 0 3px var(--login-focus-ring);
}

.login-input__field--password {
    padding-right: 3rem;
}

.login-input__toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--login-input-icon);
    display: flex;
    align-items: center;
    z-index: 2;
}

.login-input__toggle:hover {
    color: var(--login-card-muted);
}

.login-input__toggle svg {
    width: 18px;
    height: 18px;
}

/* Fluent Select */
.login-form-card fluent-select,
.login-form-card fluent-text-field {
    width: 100%;
    --control-corner-radius: 14px;
}

.login-input--select {
    width: 100%;
}

.login-input--select fluent-select {
    width: 100%;
    min-height: 52px;
    padding-left: 0;
    --neutral-fill-rest: var(--login-input-bg);
    --neutral-fill-hover: rgba(8, 6, 72, 0.85);
    --neutral-fill-active: rgba(8, 6, 72, 0.85);
    --neutral-fill-input-rest: var(--login-input-bg);
    --neutral-stroke-rest: var(--login-input-border);
    --neutral-stroke-hover: rgba(22, 182, 220, 0.55);
    --neutral-stroke-active: var(--login-accent-start);
    --neutral-foreground-rest: var(--login-card-text);
    --neutral-foreground-hint: var(--login-input-placeholder);
    --neutral-layer-floating: #2a2a58;
    --fill-color: var(--login-card-text);
}

.login-input--select .login-input__icon {
    display: none;
}

.login-input--plain .login-input__field {
    padding-left: 1rem;
}

.login-input--has-icon .login-input__field {
    padding-left: 2.75rem;
}

.login-input:not(.login-input--has-icon):not(.login-input--select) .login-input__field {
    padding-left: 1rem;
}

body:has(.login-page) fluent-select.login-fluent-select::part(listbox) {
    --neutral-layer-floating: #2a2a58;
    --neutral-fill-rest: #2a2a58;
    --neutral-fill-hover: #2D3FA3;
    --neutral-foreground-rest: #FFFFFF;
    --neutral-stroke-rest: #2D3FA3;
    background: #2a2a58;
    color: #FFFFFF;
    border: 1px solid #2D3FA3;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

body:has(.login-page) fluent-select.login-fluent-select::part(listbox) fluent-option,
body:has(.login-page) fluent-select.login-fluent-select::part(listbox) [role="option"] {
    color: #FFFFFF;
}

.login-fluent-select {
    min-height: 52px;
    width: 100%;
}

/* Opciones recordar / olvidé */
.login-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 1.5rem;
    flex-wrap: wrap;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.login-remember--simple {
    margin: 0;
}

.login-remember__box {
    width: 18px;
    height: 18px;
    accent-color: #6b4f9e;
    cursor: pointer;
    flex-shrink: 0;
}

.login-remember__text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--login-card-text);
}

.login-forgot {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6EC6F5;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.login-forgot:hover {
    color: #6EC6F5;
}

/* Botón principal — azul como foco, con toque violeta */
.login-page .login-form-card .btn-login,
.login-page .login-form-card .btn-login:hover:not(:disabled),
.login-page .login-form-card .btn-login:active:not(:disabled) {
    background: linear-gradient(115deg, #121080 0%, #2D3FA3 50%, #7226B9 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 8px 22px rgba(18, 16, 128, 0.36), 0 0 0 1px rgba(178, 102, 229, 0.14) inset;
    transform: none;
    filter: none;
}

.btn-login {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(115deg, #121080 0%, #2D3FA3 50%, #7226B9 100%);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(18, 16, 128, 0.34);
}

.btn-login:hover:not(:disabled) {
    transform: none;
    filter: none;
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-login__arrow {
    font-size: 1.125rem;
    line-height: 1;
}

/* Alerta conexión */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    background: var(--login-alert-bg);
    border: 1px solid var(--login-alert-border);
    color: var(--login-alert-text);
    line-height: 1.45;
}

.login-alert__retry {
    margin-top: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--login-alert-border);
    background: var(--login-alert-btn-bg);
    color: var(--login-alert-text);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.login-error {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--login-error-bg);
    border: 1px solid var(--login-error-border);
    color: var(--login-error-text);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}

/* Ayuda */
.login-form__help {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--login-help-border);
    text-align: center;
}

.login-form__help-label {
    font-size: 0.8125rem;
    color: var(--login-card-muted);
    margin: 0 0 0.625rem;
}

.login-page .login-form-card .login-form__help-link,
.login-page .login-form-card .login-form__help-link:hover {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
}

.login-page .login-form-card .login-form__help-link svg {
    width: 18px;
    height: 18px;
    color: #FFFFFF;
}

.login-form__help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

.login-form__help-link:hover {
    color: #FFFFFF;
}

.login-form__help-link svg {
    width: 18px;
    height: 18px;
    color: #FFFFFF;
}

.validation-message {
    display: block;
    font-size: 0.75rem;
    color: var(--login-error-text);
    margin-top: 0.375rem;
}

/* Footer dentro de la tarjeta intermedia */
.login-footer {
    position: relative;
    z-index: 1;
    grid-row: 2;
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 2.5rem 1.25rem;
    font-size: 0.75rem;
    color: var(--login-text-muted);
    border-top: 1px solid rgba(110, 198, 245, 0.12);
    background: rgba(8, 6, 96, 0.45);
    backdrop-filter: blur(6px);
}

.login-footer__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-footer__left svg {
    width: 14px;
    height: 14px;
    color: #6EC6F5;
    flex-shrink: 0;
}

.login-footer__right {
    color: var(--login-text-muted);
    text-align: right;
}

/* Compatibilidad login-frame footer legacy */
.login-frame__footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem 1.25rem;
    font-size: 0.75rem;
    color: var(--login-text-muted);
    border-top: 1px solid rgba(45, 63, 163, 0.25);
}

.login-frame__footer svg {
    width: 14px;
    height: 14px;
    color: #6EC6F5;
}

.login-frame__footer-sep {
    color: #4B5563;
}

/* Cambiar clave */
.change-pwd-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.change-pwd-page .login-page__bg,
.change-pwd-page .login-page__overlay {
    position: fixed;
}

.change-pwd-lead {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--login-card-muted);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1200px) {
    .login-layout {
        grid-template-columns: minmax(0, 340px) minmax(160px, 1fr) minmax(0, 400px);
        padding: 2rem 1.75rem 1.25rem;
    }

    .login-hero-zone {
        min-height: 260px;
    }

    .login-footer {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .login-page {
        padding: 0.75rem;
    }

    .login-frame {
        min-height: auto;
        border-radius: 22px;
    }

    .login-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
        padding: 1.75rem 1.25rem 1rem;
        gap: 0;
    }

    .login-hero-zone {
        display: none;
    }

    .login-brand {
        grid-column: 1;
        grid-row: 1;
        padding: 0 0 1rem;
    }

    .login-brand__security {
        display: none;
    }

    .login-panel {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        padding: 0;
    }

    .login-form-card {
        max-width: 100%;
    }

    .login-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding: 0.875rem 1.25rem 1rem;
    }

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

@media (max-width: 480px) {
    .login-frame {
        border-radius: 18px;
    }

    .login-layout {
        padding: 1.25rem 1rem 0.75rem;
    }

    .login-brand__headline {
        font-size: 1.65rem;
    }

    .login-form-card {
        padding: 1.75rem 1.25rem 1.25rem;
        border-radius: 20px;
    }

    .login-form__options {
        flex-direction: column;
        align-items: flex-start;
    }
}
