/* ============================================================
   Behind the Siren – Berufsfeuerwehr Wiesbaden
   Stylesheet
   ============================================================ */

:root {
    --red: #e10600;
    --red-deep: #b30500;
    --red-glow: rgba(225, 6, 0, 0.35);
    --bg: #ffffff;
    --bg-soft: #f5f6f8;
    --bg-dark: #0d1117;
    --bg-darker: #06080c;
    --ink: #0d1117;
    --ink-soft: #3a414b;
    --ink-muted: #6b7280;
    --line: #e5e7eb;
    --line-dark: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 30px rgba(13, 17, 23, 0.06);
    --shadow-lg: 0 30px 80px rgba(13, 17, 23, 0.12);
    --container: 1180px;
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-deep); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 .5em;
}
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

.eyebrow {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}
.eyebrow-light { color: #ff8080; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 8px 20px var(--red-glow);
}
.btn-primary:hover {
    background: var(--red-deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px var(--red-glow);
}
.btn-ghost {
    background: transparent;
    color: inherit;
    border-color: currentColor;
    opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; color: inherit; transform: translateY(-2px); }

/* ============ HEADER / NAV ============ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(13, 17, 23, 0.7);
    border-bottom: 1px solid var(--line-dark);
    transition: background .3s;
}
.site-header.scrolled {
    background: rgba(13, 17, 23, 0.92);
}
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.brand:hover { color: var(--white); }
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 6px 18px var(--red-glow);
}
.brand-text strong {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.brand-text small {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}
.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 38px; height: 38px;
    padding: 0;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--white);
    margin: 5px auto;
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-darker);
    color: var(--white);
    padding: 140px 0 80px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
.hero-glow {
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--red-glow), transparent 60%);
    filter: blur(20px);
}
.hero-pulse {
    position: absolute;
    bottom: -150px; left: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(225,6,0,0.25), transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: .5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}
.hero-title {
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 24px;
}
.hero-title-line { display: block; }
.hero-title-line.accent { color: var(--red); }
.cursor {
    display: inline-block;
    color: var(--white);
    animation: blink 1.1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-lead {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    color: rgba(255,255,255,0.78);
    max-width: 640px;
    margin: 0 0 36px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-cta .btn-ghost { color: var(--white); }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding-top: 40px;
    border-top: 1px solid var(--line-dark);
    max-width: 720px;
}
.hero-stats dt {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.hero-stats dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
}
.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    z-index: 1;
}
.scroll-hint span {
    display: block;
    width: 4px; height: 8px;
    background: var(--white);
    border-radius: 2px;
    margin: 6px auto;
    animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ============ SECTIONS ============ */
.section {
    padding: 110px 0;
}
.section-dark {
    background: var(--bg-dark);
    color: var(--white);
}
.section-dark p, .section-dark .lead { color: rgba(255,255,255,0.72); }
.section-split { background: var(--bg-soft); }

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-head .lead { margin: 0 auto; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ============ INFO CARD ============ */
.info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(10px);
}
.info-card h3 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.15rem;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 16px;
}
.check-list li:last-child { border-bottom: 0; }
.check-list span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--mono);
}
.check-list strong {
    color: var(--white);
    font-weight: 600;
    text-align: right;
}

/* ============ TASKS ============ */
.task-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.task-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}
.task-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
}
.task-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.task-card:hover::before { transform: scaleX(1); }
.task-num {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 16px;
}
.task-card h3 { margin-bottom: 12px; }
.task-card p { margin: 0; }

/* ============ PROFIL ============ */
.profile-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-card {
    background: var(--bg-dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    position: relative;
    font-family: var(--mono);
    font-size: 0.85rem;
}
.profile-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.profile-row span {
    width: 130px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
}
.bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.bar i {
    display: block;
    height: 100%;
    width: var(--w, 0%);
    background: linear-gradient(90deg, var(--red), #ff5050);
    border-radius: 999px;
    animation: fillBar 1.4s ease-out forwards;
    transform-origin: left;
}
@keyframes fillBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.profile-tag {
    position: absolute;
    top: -14px; right: 20px;
    background: var(--red);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.profile-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}
.profile-list li {
    position: relative;
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}
.profile-list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 14px;
    width: 22px; height: 22px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ============ PERKS ============ */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.perk {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .25s, border-color .25s, background .25s;
}
.perk:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    background: rgba(225, 6, 0, 0.06);
}
.perk-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.perk h4 { color: var(--white); margin-bottom: 6px; }
.perk p { font-size: 0.92rem; margin: 0; }

/* ============ TIMELINE ============ */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 80px; top: 8px; bottom: 8px;
    width: 2px;
    background: var(--line);
}
.timeline li {
    display: flex;
    gap: 32px;
    padding: 20px 0;
    position: relative;
}
.timeline .time {
    width: 70px;
    flex-shrink: 0;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--red);
    font-size: 1rem;
    padding-top: 2px;
    text-align: right;
}
.timeline li::after {
    content: '';
    position: absolute;
    left: 76px; top: 26px;
    width: 10px; height: 10px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg);
}
.timeline h4 { margin: 0 0 6px; }
.timeline p { margin: 0; }

/* ============ CTA SECTION ============ */
.section-cta {
    background: linear-gradient(135deg, var(--red) 0%, #8a0300 100%);
    color: var(--white);
}
.cta-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}
.section-cta h2 { color: var(--white); }
.section-cta .lead { color: rgba(255,255,255,0.92); }
.cta-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}
.cta-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    font-size: 0.95rem;
}
.cta-list li:last-child { border-bottom: 0; }
.cta-list strong {
    display: inline-block;
    width: 170px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-family: var(--mono);
}
.cta-list a { color: var(--white); border-bottom: 1px dashed rgba(255,255,255,0.5); }
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cta-actions .btn-primary {
    background: var(--white);
    color: var(--red);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}
.cta-actions .btn-primary:hover { background: var(--bg-soft); color: var(--red-deep); }
.cta-actions .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cta-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    text-align: center;
}

/* ============ FAQ ============ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}
.faq details {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: background .25s, border-color .25s;
}
.faq details[open] {
    background: rgba(225,6,0,0.05);
    border-color: rgba(225,6,0,0.35);
}
.faq summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--white);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--red);
    transition: transform .25s;
    line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
    padding: 0 24px 20px;
    color: rgba(255,255,255,0.78);
    margin: 0;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--bg-darker);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 32px;
    border-top: 1px solid var(--line-dark);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-grid-compact {
    grid-template-columns: 2fr 1fr 1fr;
}
.footer-text {
    font-size: 0.9rem;
    margin: 20px 0 0;
    line-height: 1.7;
}
.brand-footer { margin-bottom: 0; }
.site-footer h5 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-family: var(--mono);
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li {
    padding: 6px 0;
    font-size: 0.92rem;
}
.footer-list a {
    color: rgba(255,255,255,0.7);
}
.footer-list a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

html:has(.login-body),
.login-body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
.login-body {
    background: var(--bg-darker);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overscroll-behavior: none;
}

.login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.login-bg .hero-grid,
.login-bg .hero-glow,
.login-bg .hero-pulse { position: absolute; }
.login-bg .hero-grid { inset: 0; }

.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.login-card {
    width: 100%;
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card.shake {
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.brand-login {
    margin-bottom: 28px;
    justify-content: flex-start;
}

.login-head { margin-bottom: 28px; }
.login-head .badge-ghost { margin-bottom: 14px; }
.login-head h1 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    color: var(--white);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.login-head p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin: 0;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-row label {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}
.form-row input[type="text"],
.form-row input[type="password"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--white);
    font-family: var(--font);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-row input::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-row input:focus {
    border-color: var(--red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 50px; }
.toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: background 0.2s, color 0.2s;
}
.toggle-pw:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.form-row-inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--font);
    font-weight: 400;
}
.check input { accent-color: var(--red); }
.link-muted {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: underline;
    text-decoration-style: dotted;
}
.link-muted:hover { color: var(--white); }

.login-error {
    background: rgba(225, 6, 0, 0.12);
    border: 1px solid rgba(225, 6, 0, 0.4);
    color: #ffb3b3;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s, max-height 0.25s, padding 0.25s, margin 0.25s;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.login-error.show {
    opacity: 1;
    max-height: 100px;
    padding: 12px 16px;
}

.btn-block { width: 100%; }

/* Hint box */
.login-hint {
    margin-top: 28px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}
.login-hint strong {
    color: var(--white);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.login-hint p { margin: 0; color: inherit; font-size: inherit; }
.login-hint code {
    font-family: var(--mono);
    background: rgba(225, 6, 0, 0.15);
    color: #ff8080;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.login-footnote {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}
.login-footnote a { color: rgba(255, 255, 255, 0.7); }

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--red);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(225, 6, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    max-width: 90%;
    text-align: center;
    z-index: 100;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Logout button on main page */
.logout-pill {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(13, 17, 23, 0.9);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    font-family: var(--font);
}
.logout-pill:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .login-body { padding: 16px 14px; }
    .login-wrap { gap: 14px; }
    .login-card { padding: 24px 20px; }
    .brand-login { margin-bottom: 18px; }
    .login-head { margin-bottom: 18px; }
    .login-head h1 { font-size: 1.4rem; }
    .login-head p { font-size: 0.85rem; }
    .login-form { gap: 14px; }
    .form-row-inline { flex-direction: column; align-items: flex-start; gap: 8px; }
    .login-footnote { font-size: 0.72rem; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .nav-wrap.open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-darker);
        padding: 24px;
        border-bottom: 1px solid var(--line-dark);
        gap: 20px;
    }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .reverse-mobile > *:first-child { order: 2; }
    .task-grid { grid-template-columns: 1fr; }
    .perks-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-card { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 80px 0; }
}
@media (max-width: 540px) {
    .perks-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .timeline::before { left: 50px; }
    .timeline li::after { left: 46px; }
    .timeline .time { width: 40px; font-size: 0.85rem; }
    .hero { padding: 120px 0 60px; }
    .cta-list strong { display: block; width: auto; margin-bottom: 4px; }
}
