/* Acceso: misma identidad azul del encabezado y del dashboard. */
.aura-login {
    --auth-navy: #00094e;
    --auth-primary: #176ac4;
    --auth-cyan: #019dda;
    --auth-ink: #142d53;
    --auth-muted: #62738a;
    --auth-line: #e2eaf2;
    margin: 0;
    color: var(--auth-ink);
    background: #edf2f7;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.aura-login *, .aura-login *::before, .aura-login *::after { box-sizing: border-box; }
.aura-login :is(a, button, input):focus-visible { outline: 3px solid #438bd7; outline-offset: 4px; }
.aura-login a, .aura-login button { -webkit-tap-highlight-color: transparent; }
.auth-layout { display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; min-height: 100dvh; margin: 0; padding: 0; }
.auth-story { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding: clamp(32px, 4.7vw, 80px); border-radius: 0; color: white; background: radial-gradient(ellipse at 100% 80%, #019dda66, transparent 64%), radial-gradient(ellipse at 0 0, #176ac426, transparent 55%), linear-gradient(145deg, #00094e 0%, #052b60 58%, #015a95 100%); }
.auth-story::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background-image: linear-gradient(#b2ddff07 1px, transparent 1px), linear-gradient(90deg, #b2ddff07 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(125deg, transparent 35%, #000 100%); }
.auth-story-brand { display: flex; align-items: center; gap: 13px; font-size: 23px; font-weight: 650; letter-spacing: -.5px; }
.auth-story-brand small { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2.2px; color: #b6cbe7; margin-top: 3px; }
.auth-brand-symbol { display: grid; place-items: center; width: 45px; height: 49px; border: 1px solid #ffffff36; border-radius: 13px; background: linear-gradient(145deg, #ffffff1c, #ffffff05); box-shadow: inset 0 1px #ffffff15; font-size: 23px; }
.auth-story-content { padding-bottom: 12px; }
.auth-eyebrow { display: flex; align-items: center; gap: 10px; color: #b6dbfa; font-size: 10px; font-weight: 600; letter-spacing: 2px; }
.auth-eyebrow > span { display: block; width: 23px; height: 2px; background: #7edaf6; }
.auth-story h1 { font-size: clamp(42px, 4.6vw, 72px); line-height: 1.08; letter-spacing: -2.7px; font-weight: 650; margin: 23px 0 25px; }
.auth-story h1 > span { color: #81daf4; background: linear-gradient(105deg, #b3efff, #54c8ef); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-story-content > p { color: #c3d6ee; font-size: 16px; line-height: 1.8; margin: 0; }
.auth-capabilities { display: flex; gap: 0; margin-top: 40px; padding-top: 24px; border-top: 1px solid #ffffff24; max-width: 480px; }
.auth-capabilities > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-left: 20px; border-left: 1px solid #ffffff17; }
.auth-capabilities > div:first-child { padding-left: 0; border: 0; }
.auth-capabilities i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid #b4dfff2e; background: linear-gradient(145deg, #ffffff10, #ffffff02); font-size: 18px; color: #b6e9ff; }
.auth-capabilities span { color: #e5effb; font-size: 12px; font-weight: 600; }
.auth-capabilities small { display: block; margin-top: 4px; max-width: 120px; padding-right: 8px; color: #aec9e4; font-size: 10px; line-height: 1.5; font-weight: 400; }
.auth-story-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #b6cce5; font-size: 10px; }
.auth-story-footer > span:first-child { letter-spacing: 1.3px; font-size: 8px; }
.auth-story-footer > span:last-child { white-space: nowrap; }
.auth-contours { position: absolute; width: 720px; height: 720px; right: -390px; bottom: -295px; z-index: -1; transform: rotate(-23deg); pointer-events: none; }
.auth-contours span { position: absolute; inset: 0; border: 1px solid #b4dfff25; border-radius: 30%; }
.auth-contours span:nth-child(2) { inset: 50px; }
.auth-contours span:nth-child(3) { inset: 100px; }
.auth-contours span:nth-child(4) { inset: 150px; }
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px clamp(28px, 5vw, 80px); background: #fff; border: 0; border-radius: 0; }
.auth-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #014e91, #019dda 55%, #dff5fb); }
.auth-form-content { width: 100%; max-width: 386px; min-width: 0; }
.auth-logo { display: block; width: 234px; max-width: 100%; height: auto; margin-bottom: 42px; }
.auth-section-label { display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 650; letter-spacing: 1.6px; color: #54718e; margin-bottom: 10px; }
.auth-section-label::before { content: ''; width: 17px; height: 2px; flex-shrink: 0; background: #019dda; }
.auth-heading h2 { font-size: 32px; font-weight: 650; letter-spacing: -1px; margin: 0 0 10px; }
.auth-heading p { font-size: 13px; line-height: 1.6; color: var(--auth-muted); margin: 0; }
.auth-heading { margin-bottom: 30px; }
.auth-field { margin-bottom: 22px; }
.aura-login .form-label { color: var(--auth-ink); font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.auth-label-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; }
.auth-recovery { padding: 0; margin-bottom: 9px; min-height: 24px; color: #1763af; background: none; border: 0; font-size: 11px; font-weight: 500; line-height: 1.5; }
.auth-recovery:hover { color: var(--auth-navy); text-decoration: underline; }
.auth-input { border-radius: 9px; }
.auth-input .input-group-text, .auth-input .form-control, .auth-password-toggle { min-height: 49px; background: #f9fbfd; border: 1px solid #d6e1ed; transition: border-color .15s, background-color .15s; }
.auth-input .input-group-text { color: #6b83a0; border-right: 0; border-radius: 9px 0 0 9px; padding: 0 0 0 15px; font-size: 17px; }
.auth-input .form-control { color: var(--auth-ink); font-size: 14px; padding: 12px 13px; border-left: 0; border-radius: 0 9px 9px 0 !important; box-shadow: none; min-width: 0; }
.auth-input .form-control:has(+ .auth-password-toggle) { border-right: 0; border-radius: 0 !important; }
.auth-input .form-control::placeholder { color: #7f8da0; opacity: 1; font-size: 13px; }
.auth-input .form-control:focus { outline: 0; box-shadow: none; }
.auth-input:focus-within .input-group-text, .auth-input:focus-within .form-control, .auth-input:focus-within .auth-password-toggle { border-color: #176ac4; background: #fff; }
.auth-input:focus-within { box-shadow: 0 0 0 3px #176ac414; }
.auth-input:focus-within .input-group-text { color: var(--auth-primary); }
.auth-password-toggle { width: 46px; flex-shrink: 0; border-left: 0; border-radius: 0 9px 9px 0 !important; color: #637b98; }
.auth-password-toggle:hover { color: var(--auth-primary); background-color: #edf4fc; border-color: #dce5ee; }
.auth-input .invalid-feedback { font-size: 12px; margin-top: 6px; }
.auth-submit { display: flex; align-items: center; justify-content: center; position: relative; gap: 15px; width: 100%; min-height: 49px; margin-top: 30px; border-radius: 9px; padding: 13px 18px; font-size: 13px; font-weight: 600; color: white; border: 1px solid #165daa; background: linear-gradient(110deg, #014e91, #176ac4 75%, #1282bb); box-shadow: 0 5px 14px #014e9126, inset 0 1px #ffffff1a; transition: box-shadow .15s, background-color .15s; }
.auth-submit i { position: absolute; right: 18px; font-size: 17px; transition: transform .15s; }
.auth-submit:hover, .auth-submit:focus-visible { color: white; background: #125cae; border-color: #125cae; box-shadow: 0 7px 20px #176ac438; }
.auth-submit:hover i { transform: translateX(3px); }
.auth-submit:active { color: white !important; background: #014e91 !important; }
.auth-footer { position: relative; margin-top: 34px; padding-top: 23px; border-top: 1px solid var(--auth-line); text-align: center; }
.auth-footer::before { content: ''; position: absolute; top: -1px; left: 0; width: 36px; height: 1px; background: #71b7d8; }
.auth-maker { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--auth-muted); font-size: 10px; }
.auth-maker img { width: 100px; height: 40px; object-fit: contain; }
.auth-maker:hover { color: var(--auth-primary); }
.auth-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 10px; margin: 16px 0 9px; color: #98a5b4; }
.auth-legal a { color: #60758e; text-decoration: none; }
.auth-legal a:hover { color: var(--auth-primary); text-decoration: underline; }
.auth-footer > small { display: block; color: #6d7f93; font-size: 9px; }
@media (max-width: 1100px) {
    .auth-layout { grid-template-columns: .95fr 1fr; }
    .auth-story { padding: 36px; }
    .auth-story h1 { font-size: 48px; }
    .auth-story-content > p { font-size: 14px; }
    .auth-story-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .auth-panel { padding: 36px; }
}
@media (max-width: 800px) {
    .auth-layout { display: flex; flex-direction: column; }
    .auth-story { padding: 18px 26px; gap: 0; }
    .auth-story-brand { font-size: 18px; gap: 10px; }
    .auth-story-brand small { font-size: 8px; letter-spacing: 1.8px; }
    .auth-brand-symbol { width: 36px; height: 39px; font-size: 19px; border-radius: 10px; }
    .auth-story-content, .auth-story-footer { display: none; }
    .auth-contours { bottom: -370px; right: -200px; }
    .auth-panel { flex: 1; padding: 32px 30px; }
    .auth-form-content { max-width: 386px; }
    .auth-logo { width: 210px; margin-bottom: 29px; }
    .auth-heading { margin-bottom: 25px; }
    .auth-heading h2 { font-size: 28px; }
    .auth-input .form-control { font-size: 16px; }
    .auth-footer { margin-top: 28px; padding-top: 18px; }
}
@media (max-width: 380px) {
    .auth-layout { margin: 0; padding: 0; min-height: 100dvh; }
    .auth-story, .auth-panel { border-radius: 0; }
    .auth-story { padding: 16px 24px; }
    .auth-panel { padding: 27px 24px; border: 0; }
    .auth-section-label { font-size: 8px; letter-spacing: 1px; }
}
/* Adaptar también al alto disponible: compactar contenido, sin recortar el formulario. */
@media (max-height: 800px) {
    .auth-story { gap: 28px; padding-top: 30px; padding-bottom: 30px; }
    .auth-story h1 { font-size: clamp(40px, 4vw, 56px); margin: 18px 0; }
    .auth-capabilities { margin-top: 28px; padding-top: 20px; }
    .auth-panel { padding-top: 24px; padding-bottom: 24px; }
    .auth-logo { width: 200px; margin-bottom: 24px; }
    .auth-heading { margin-bottom: 22px; }
    .auth-field { margin-bottom: 16px; }
    .auth-submit { margin-top: 20px; }
    .auth-footer { margin-top: 22px; padding-top: 14px; }
    .auth-legal { margin-top: 10px; margin-bottom: 6px; }
}
@media (max-height: 680px) {
    .auth-story { padding: 24px; gap: 22px; }
    .auth-story h1 { font-size: 42px; }
    .auth-capabilities small { display: none; }
    .auth-capabilities i { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
    .auth-story-footer > span:first-child { display: none; }
    .auth-panel { padding-top: 18px; padding-bottom: 18px; }
    .auth-logo { width: 180px; margin-bottom: 14px; }
    .auth-section-label { margin-bottom: 7px; }
    .auth-heading { margin-bottom: 16px; }
    .auth-heading h2 { font-size: 25px; margin-bottom: 6px; }
    .auth-field { margin-bottom: 12px; }
    .aura-login .form-label, .auth-recovery { margin-bottom: 6px; }
    .auth-input .input-group-text, .auth-input .form-control, .auth-password-toggle { min-height: 44px; }
    .auth-input .form-control { padding-top: 9px; padding-bottom: 9px; }
    .auth-submit { min-height: 44px; padding-top: 10px; padding-bottom: 10px; margin-top: 14px; }
    .auth-footer { margin-top: 16px; padding-top: 10px; }
    .auth-maker img { width: 85px; height: 30px; }
    .auth-legal { margin-top: 7px; margin-bottom: 5px; }
}
@media (max-width: 800px) and (max-height: 800px) {
    .auth-story { padding: 14px 26px; }
}
@media (max-width: 800px) and (max-height: 680px) {
    .auth-story { display: none; }
    .auth-panel { border-radius: 0; border: 0; padding: 18px 24px; }
}
/* En horizontal, la marca queda junto al formulario para aprovechar el ancho. */
@media (min-width: 560px) and (max-height: 520px) {
    .auth-layout { display: flex; max-width: none; min-height: 100dvh; margin: 0; padding: 0; }
    .auth-story { display: none; }
    .auth-panel { width: 100%; border: 0; border-radius: 0; padding: 16px 24px; }
    .auth-form-content { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 32px; max-width: 760px; align-items: center; }
    .auth-logo { grid-column: 1; grid-row: 1; margin: 0; width: 185px; align-self: end; }
    .auth-heading { grid-column: 1; grid-row: 2; margin: 16px 0 0; align-self: start; }
    .auth-section-label { display: none; }
    .auth-heading h2 { font-size: 24px; }
    #authForm { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
    .auth-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 10px; }
    .auth-legal { margin: 0; }
    .auth-footer > small { max-width: 140px; text-align: right; }
}
@media (min-width: 560px) and (max-width: 680px) and (max-height: 520px) {
    .auth-form-content { column-gap: 24px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
    .auth-footer > small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aura-login *, .aura-login *::before, .aura-login *::after { transition: none !important; animation: none !important; } }
