/* ============================================================
   MatthyGD — Academia de Ciberseguridad
   main.css — Refined Cyber v3.0
   ============================================================ */

/* ── Design Tokens ── */
:root {
    /* Color: un solo acento, paleta sobria */
    --bg:              #0a0d12;
    --bg-elevated:     #10141c;
    --bg-overlay:      #0c1018;
    --border:          rgba(255,255,255,0.06);
    --border-strong:   rgba(255,255,255,0.10);
    --border-accent:   rgba(34,214,138,0.40);

    --text:            #e6e8ec;
    --text-muted:      #8b94a3;
    --text-dim:        #4a5263;

    --accent:          #22d68a;
    --accent-dim:      rgba(34,214,138,0.12);
    --accent-glow:     rgba(34,214,138,0.20);

    --danger:          #ef4444;
    --warning:         #fbbf24;

    /* Type */
    --f-display: 'Syne', system-ui, sans-serif;
    --f-sans:    'Inter', 'DM Sans', system-ui, sans-serif;
    --f-mono:    'JetBrains Mono', ui-monospace, monospace;

    /* Spacing */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
    --s-9: 96px; --s-10: 128px;

    /* Radius */
    --r-sm: 4px;  --r-md: 8px;  --r-lg: 12px;

    /* Timing */
    --t-fast: 150ms; --t-base: 250ms; --t-slow: 400ms;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--f-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Sutil grid de fondo (signature) */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Type ── */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

.mono { font-family: var(--f-mono); }
.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }
.text-accent{ color: var(--accent); }

/* Eyebrow label (signature: marca el subject) */
.eyebrow {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}
.eyebrow::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

/* ── Layout ── */
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: var(--s-10) 0; position: relative; z-index: 1; }
.section-divider { height: 1px; background: var(--border); margin: 0; }
.grid { display: grid; gap: var(--s-5); }
.flex { display: flex; }
.hidden { display: none !important; }

@media (max-width: 768px) {
    .section { padding: var(--s-8) 0; }
}

/* ══════════════════════════════════════════════
   NAV (top bar minimalista)
══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: var(--s-4) 0;
    background: rgba(10, 13, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: min(1180px, 92%); margin: 0 auto;
}
.nav-brand {
    font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
    letter-spacing: -0.01em;
    display: flex; align-items: center; gap: var(--s-2);
}
.nav-brand::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: dotPulse 2.4s var(--ease) infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.nav-links { display: flex; gap: var(--s-2); align-items: center; }
.nav-link {
    font-family: var(--f-mono); font-size: 0.78rem;
    color: var(--text-muted);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-sm);
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--accent-dim); }
.nav-link .key {
    font-size: 0.65rem; opacity: 0.5;
    border: 1px solid currentColor; border-radius: 3px;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* ══════════════════════════════════════════════
   STATUS BAR (signature: barra estilo IDE)
══════════════════════════════════════════════ */
.statusbar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px var(--s-5);
    background: var(--bg-overlay);
    border-top: 1px solid var(--border);
    font-family: var(--f-mono); font-size: 0.7rem; color: var(--text-dim);
}
.statusbar > div { display: flex; align-items: center; gap: var(--s-4); }
.statusbar .seg { display: inline-flex; align-items: center; gap: 6px; }
.statusbar .seg .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}
@media (max-width: 640px) {
    .statusbar .hide-sm { display: none; }
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: 12px 22px;
    font-family: var(--f-mono); font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    transition: all var(--t-base) var(--ease);
    white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
    background: var(--accent);
    color: #001a0d;
    font-weight: 600;
}
.btn-primary:hover {
    background: #2ee89a;
    box-shadow: 0 0 32px var(--accent-glow);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    border-color: var(--border-accent);
    color: var(--accent);
    background: var(--accent-dim);
}
.btn-sm { padding: 8px 14px; font-size: 0.74rem; }
.btn-lg { padding: 16px 28px; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: var(--s-9) 0 var(--s-8);
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-9);
    align-items: center;
}
.hero-eyebrow { margin-bottom: var(--s-5); }
.hero h1 {
    margin-bottom: var(--s-4);
}
.hero h1 .accent-mark {
    color: var(--accent);
    font-family: var(--f-mono);
    font-weight: 300;
    font-size: 0.65em;
    vertical-align: 0.4em;
    margin-left: 0.1em;
}
.hero-tagline {
    font-family: var(--f-mono);
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: var(--s-5);
    min-height: 1.6em;
    display: flex; align-items: center; gap: var(--s-2);
}
.hero-tagline .prompt { color: var(--accent); }
.hero-tagline .cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); animation: cursorBlink 1s steps(1) infinite; vertical-align: middle; }
@keyframes cursorBlink { 50% { opacity: 0; } }
.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 56ch;
    margin-bottom: var(--s-6);
}
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-7); }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.hero-stat {
    padding: var(--s-5) 0;
    border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
    font-family: var(--f-display); font-weight: 700;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--s-2);
}
.hero-stat .lab {
    font-family: var(--f-mono); font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
}

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-elevated);
}
.hero-visual::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--hero-img, none);
    background-size: cover; background-position: center;
    filter: grayscale(0.4) contrast(1.05);
    mix-blend-mode: luminosity;
}
.hero-visual::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, transparent 50%, var(--bg) 100%),
        radial-gradient(circle at 70% 30%, var(--accent-glow), transparent 60%);
    mix-blend-mode: multiply;
}
.hero-visual-overlay {
    position: absolute; inset: 0;
    padding: var(--s-5);
    display: flex; flex-direction: column; justify-content: space-between;
    z-index: 2;
    font-family: var(--f-mono); font-size: 0.7rem;
    color: var(--text-muted);
}
.hero-visual-overlay .corners { position: absolute; inset: 12px; pointer-events: none; }
.hero-visual-overlay .corners::before, .hero-visual-overlay .corners::after {
    content: ''; position: absolute;
    width: 18px; height: 18px;
    border: 1px solid var(--accent);
}
.hero-visual-overlay .corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-visual-overlay .corners::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero-visual-overlay .top {
    display: flex; justify-content: space-between; align-items: center;
}
.hero-visual-overlay .bot {
    display: flex; justify-content: space-between; align-items: end;
}

@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 360px; aspect-ratio: 1; }
}

/* ══════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════ */
.section-head {
    margin-bottom: var(--s-7);
    max-width: 720px;
}
.section-head .eyebrow { margin-bottom: var(--s-3); }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--s-7);
    align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.bio-card {
    padding: var(--s-6);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.bio-id {
    display: flex; align-items: center; gap: var(--s-3);
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-5);
    border-bottom: 1px solid var(--border);
}
.bio-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background-image: var(--hero-img, none);
    background-size: cover; background-position: center;
    border: 2px solid var(--accent);
}
.bio-id-meta { flex: 1; }
.bio-id-meta h3 { margin-bottom: 2px; }
.bio-id-meta .role {
    font-family: var(--f-mono); font-size: 0.75rem;
    color: var(--accent);
}
.bio-text { color: var(--text-muted); margin-bottom: var(--s-5); }
.bio-social { display: flex; gap: var(--s-2); }
.bio-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
}
.bio-social a:hover { color: var(--accent); border-color: var(--border-accent); }
.bio-social svg { width: 16px; height: 16px; }

.skills-tags {
    display: flex; flex-wrap: wrap; gap: var(--s-2);
}
.skill-tag {
    font-family: var(--f-mono); font-size: 0.74rem;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
}
.skill-tag:hover {
    color: var(--accent); border-color: var(--border-accent);
}

/* ══════════════════════════════════════════════
   ROADMAP (timeline numerada — secuencia real)
══════════════════════════════════════════════ */
.roadmap {
    position: relative;
    display: grid;
    gap: var(--s-3);
}
.phase {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--s-5);
    padding: var(--s-6) var(--s-5);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-elevated);
    transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.phase:hover { border-color: var(--border-accent); transform: translateX(4px); }
.phase-num {
    font-family: var(--f-mono); font-size: 0.7rem; color: var(--accent);
    letter-spacing: 0.1em;
}
.phase-num .big {
    display: block;
    font-family: var(--f-display);
    font-size: 2.4rem;
    color: var(--text);
    line-height: 1;
    margin-top: 4px;
}
.phase-title { margin-bottom: var(--s-2); }
.phase-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: var(--s-3); }
.phase-topics {
    display: flex; flex-wrap: wrap; gap: var(--s-2);
}
.phase-topics li {
    font-family: var(--f-mono); font-size: 0.74rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

@media (max-width: 640px) {
    .phase { grid-template-columns: 1fr; gap: var(--s-3); }
    .phase-num .big { font-size: 2rem; }
}

/* ══════════════════════════════════════════════
   TEMARIOS GRID
══════════════════════════════════════════════ */
.tabs {
    display: flex; gap: var(--s-2); flex-wrap: wrap;
    margin-bottom: var(--s-6);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--border);
}
.tab {
    font-family: var(--f-mono); font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
    position: relative;
}
.tab:hover { color: var(--text); }
.tab.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s-4);
}

.card {
    position: relative;
    padding: var(--s-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    overflow: hidden;
    display: flex; flex-direction: column;
    min-height: 260px;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
}
.card:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

.card-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    color: var(--accent);
    margin-bottom: var(--s-4);
    background: var(--bg-overlay);
}
.card-icon svg { width: 18px; height: 18px; }
.card h3 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin-bottom: var(--s-4); }
.card-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s-3);
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
}
.level {
    font-family: var(--f-mono); font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    text-transform: uppercase; letter-spacing: 0.08em;
    border: 1px solid;
}
.level.beginner     { color: var(--accent);  border-color: var(--border-accent); }
.level.intermediate { color: var(--warning); border-color: rgba(251,191,36,0.4); }
.level.advanced     { color: var(--danger);  border-color: rgba(239,68,68,0.4); }
.level.reference    { color: var(--text-muted); border-color: var(--border-strong); }

.progress-block {
    margin-top: var(--s-7);
    padding: var(--s-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-align: center;
}
.progress-block h3 { font-family: var(--f-mono); font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--s-3); font-weight: 500; letter-spacing: 0.05em; }
.progress-bar {
    height: 6px; background: var(--bg-overlay); border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--s-2);
}
.progress-bar > div {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #2de2e6);
    transition: width 1.2s var(--ease);
}
.progress-label { font-family: var(--f-mono); font-size: 0.78rem; color: var(--accent); }

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-grid {
    grid-template-columns: 1fr 1fr; gap: var(--s-7);
    align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: var(--s-4); }
.form-group label {
    display: block;
    font-family: var(--f-mono); font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: var(--s-2);
    letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: var(--f-sans); font-size: 0.92rem;
    transition: border-color var(--t-fast) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.info-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.info-card {
    padding: var(--s-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--t-fast) var(--ease);
}
.info-card:hover { border-color: var(--border-accent); }
.info-card .info-key {
    font-family: var(--f-mono); font-size: 0.68rem;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.info-card .info-val { font-size: 0.92rem; }
.info-card a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--s-7) 0 var(--s-8);
    margin-bottom: 28px; /* deja sitio para statusbar */
}
.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--s-6);
    margin-bottom: var(--s-6);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.footer h4 {
    font-family: var(--f-mono); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: var(--s-3);
}
.footer ul li { margin-bottom: 6px; }
.footer ul a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--t-fast) var(--ease); }
.footer ul a:hover { color: var(--accent); }
.footer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--s-3); }
.footer-bottom {
    padding-top: var(--s-5);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
    font-family: var(--f-mono); font-size: 0.74rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════ */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--s-6);
    position: relative;
}
.login-card {
    width: 100%; max-width: 440px;
    padding: var(--s-7);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    position: relative;
}
.login-card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: var(--r-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.3;
    pointer-events: none;
}
.login-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--s-6);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--border);
}
.login-brand {
    display: flex; align-items: center; gap: var(--s-2);
    font-family: var(--f-display); font-weight: 800;
}
.login-brand::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 12px var(--accent);
    animation: dotPulse 2.4s var(--ease) infinite;
}
.login-status { font-family: var(--f-mono); font-size: 0.7rem; color: var(--text-muted); }
.login-card h2 { font-size: 1.6rem; margin-bottom: var(--s-2); }
.login-sub { font-family: var(--f-mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: var(--s-5); }
.login-input-wrap {
    position: relative;
}
.login-input-wrap .toggle-pwd {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); padding: 4px;
}
.login-input-wrap .toggle-pwd:hover { color: var(--accent); }
.login-input-wrap .toggle-pwd svg { width: 16px; height: 16px; }
#login-error {
    font-family: var(--f-mono); font-size: 0.78rem;
    color: var(--danger);
    margin-top: var(--s-3);
    padding: var(--s-2) var(--s-3);
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--r-sm);
}
.login-foot {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
    font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-dim);
    text-align: center;
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════ */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children (e.g. cards inside same parent) */
.reveal-stagger > * {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 420ms; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
