/* Ave Fénix · navegación, pie público y acabado visual compartidos */
:root {
    --public-header-height: 72px;
    --public-footer-height: 62px;
    --public-ink: #0f172a;
    --public-muted: #64748b;
    --public-line: rgba(148, 163, 184, .24);
    --public-red: #ef3538;
    --public-red-dark: #b91c1c;
    --public-navy: #08111f;
}

/* Barra superior única para portada, login, registro y recuperación. */
.public-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1100;
    min-height: var(--public-header-height);
    background: rgba(255, 255, 255, .965);
    border-bottom: 1px solid var(--public-line);
    box-shadow: 0 9px 30px rgba(15, 23, 42, .09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.public-topbar-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: var(--public-header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.public-brand {
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--public-ink);
    text-decoration: none;
}
.public-brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .08);
}
.public-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.public-brand-logo > i { display: none; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, var(--public-red), var(--public-red-dark)); }
.public-brand-logo.is-fallback > i { display: grid; }
.public-brand-copy { min-width: 0; display: grid; line-height: 1.05; }
.public-brand-copy strong { font-size: 17px; font-weight: 900; letter-spacing: -.025em; }
.public-brand-copy small { margin-top: 5px; color: var(--public-muted); font-size: 9.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.public-main-nav { display: flex; align-items: center; justify-content: center; gap: 5px; }
.public-main-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 10px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: .18s ease;
}
.public-main-nav a i { color: #94a3b8; }
.public-main-nav a:hover { background: #fff1f2; color: #b91c1c; }
.public-main-nav a:hover i { color: #ef4444; }
.public-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.public-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 11px;
    border: 1px solid #dbe4ef;
    color: #1e293b;
    background: #fff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .035);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.public-action:hover { transform: translateY(-1px); border-color: #fca5a5; box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.public-action i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; }
.public-action-secondary i { color: #475569; background: #f1f5f9; }
.public-action-soft { color: #b91c1c; background: #fff7f7; border-color: #fecaca; }
.public-action-soft i { color: #dc2626; background: #fee2e2; }
.public-action-primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--public-red), var(--public-red-dark)); box-shadow: 0 10px 24px rgba(220, 38, 38, .18); }
.public-action-primary i { color: #fff; background: rgba(255, 255, 255, .16); }

/* Pie único y profesional. */
.public-footer {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1050;
    min-height: var(--public-footer-height);
    color: #e2e8f0;
    background: linear-gradient(92deg, #07101d, #0d192b 58%, #111827);
    border-top: 3px solid var(--public-red);
    box-shadow: 0 -11px 32px rgba(15, 23, 42, .18);
}
.public-footer-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: calc(var(--public-footer-height) - 3px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(205px, .9fr) minmax(230px, 1fr) minmax(370px, 1.4fr);
    align-items: center;
    gap: 20px;
}
.public-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.public-footer-mark { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 6px 15px rgba(220, 38, 38, .24); }
.public-footer-brand > span:last-child { display: grid; line-height: 1.05; }
.public-footer-brand strong { font-size: 12px; font-weight: 900; }
.public-footer-brand small { margin-top: 4px; color: #94a3b8; font-size: 8.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.public-footer-copy { color: #94a3b8; font-size: 10px; text-align: center; }
.public-footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 13px; }
.public-footer-links a { color: #cbd5e1; font-size: 10.5px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.public-footer-links a:hover { color: #fff; }

/* Reserva de espacio para las barras fijas. */
body:not(.auth-page) { padding-bottom: var(--public-footer-height); }
.auth-shell {
    min-height: 100vh !important;
    padding-top: calc(var(--public-header-height) + 25px) !important;
    padding-bottom: calc(var(--public-footer-height) + 25px) !important;
}

/* Fondo real, sin la pared gris opaca que ocultaba la imagen. */
.auth-page-background {
    position: fixed !important;
    inset: 0 !important;
    z-index: -3 !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    filter: saturate(1.04) contrast(1.02);
}
body.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(2, 6, 23, .08), rgba(255, 255, 255, .03) 46%, rgba(239, 68, 68, .05));
}

/* Mayor brillo y nitidez en la pared informativa de autenticación. */
.auth-information {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(67, 20, 34, .84), rgba(17, 24, 39, .88) 54%, rgba(7, 14, 28, .90)),
        var(--auth-side-image, none) center / cover no-repeat !important;
    border-right: 1px solid rgba(255, 255, 255, .16);
    box-shadow: inset -1px 0 rgba(255, 255, 255, .10), inset 0 0 95px rgba(255, 255, 255, .05);
    backdrop-filter: blur(2px) saturate(1.12);
}
.auth-information::before {
    background:
        radial-gradient(circle at 10% 8%, rgba(var(--auth-primary-rgb), .62), transparent 31%),
        radial-gradient(circle at 92% 84%, rgba(59, 130, 246, .16), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(2, 6, 23, .15)) !important;
}
.auth-information h1 {
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: -.04em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}
.auth-information > p { color: #f5f7fb !important; font-weight: 550; text-shadow: 0 2px 9px rgba(0, 0, 0, .30); }
.auth-eyebrow { color: #fff !important; background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .30) !important; box-shadow: inset 0 1px rgba(255, 255, 255, .10), 0 5px 18px rgba(0, 0, 0, .12); }
.auth-benefit {
    background: linear-gradient(135deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .09)) !important;
    border-color: rgba(255, 255, 255, .24) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 9px 23px rgba(2, 6, 23, .15);
    backdrop-filter: blur(9px);
}
.auth-benefit-icon {
    background: linear-gradient(145deg, rgba(var(--auth-primary-rgb), .78), rgba(var(--auth-primary-rgb), .42)) !important;
    box-shadow: 0 9px 20px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .16);
}
.auth-benefit strong { color: #fff !important; font-size: 13.5px !important; }
.auth-benefit > span:last-child > span { color: #f0f4f9 !important; }
.auth-side-note { color: #f5f7fb !important; text-shadow: 0 1px 7px rgba(0, 0, 0, .28); }

/* Caja de datos luminosa, separada del fondo. */
.auth-card { border: 1px solid rgba(255, 255, 255, .85) !important; box-shadow: 0 30px 76px rgba(15, 23, 42, .30) !important; }
.auth-form-panel { background: rgba(255, 255, 255, .985) !important; box-shadow: inset 1px 0 rgba(226, 232, 240, .85); }

@media (max-width: 1080px) {
    .public-main-nav { display: none; }
    .public-topbar-inner { gap: 12px; }
}
@media (max-width: 760px) {
    :root { --public-header-height: 64px; --public-footer-height: 0px; }
    .public-topbar-inner { width: calc(100% - 20px); }
    .public-brand { min-width: 0; }
    .public-brand-logo { width: 43px; height: 43px; flex-basis: 43px; }
    .public-brand-copy small { display: none; }
    .public-action { width: 40px; min-width: 40px; padding: 7px; }
    .public-action span { display: none; }
    .public-footer { position: relative; min-height: auto; }
    .public-footer-inner { width: calc(100% - 26px); padding: 16px 0; grid-template-columns: 1fr; justify-items: center; gap: 12px; }
    .public-footer-links { justify-content: center; }
    body:not(.auth-page) { padding-bottom: 0; }
    .auth-shell { padding-top: calc(var(--public-header-height) + 15px) !important; padding-bottom: 24px !important; }
}
@media (max-width: 480px) {
    .public-brand-copy strong { font-size: 14px; }
    .public-topbar-actions { gap: 5px; }
    .public-action-soft { display: none; }
}
