:root {
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "IBM Plex Sans", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    --color-bg: #0a0f1a;
    --color-surface: #111827;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-forest: #2f7a5f;
    --color-moss: #4ade80;
    --color-burgundy: #c0475d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: rgba(255, 255, 255, 0.88);
}

a {
    color: inherit;
    text-decoration: none;
}

.font-display {
    font-family: var(--font-display);
}

.font-mono {
    font-family: var(--font-mono);
}

.text-burgundy {
    color: var(--color-burgundy);
}

.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-forest), var(--color-burgundy), transparent);
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards;
}

.fade-in-d1 {
    animation-delay: 0.1s;
}

.fade-in-d2 {
    animation-delay: 0.2s;
}

.fade-in-d3 {
    animation-delay: 0.35s;
}

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

.auth-background {
    background:
        radial-gradient(80rem 45rem at 20% -20%, rgba(47, 122, 95, 0.22), transparent),
        radial-gradient(60rem 50rem at 120% 0%, rgba(192, 71, 93, 0.2), transparent),
        var(--color-bg);
    color: rgba(255, 255, 255, 0.9);
}

.auth-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.82));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

academic-nav,
academic-footer,
academic-auth-header {
    display: block;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(12px);
}

.site-nav.is-bordered {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-inner {
    width: min(var(--site-max-width, 64rem), calc(100% - 3rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
}

.site-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.56);
    transition: color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: white;
}

.site-github-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.38rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.site-github-btn:hover {
    border-color: var(--color-moss);
    color: var(--color-moss);
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
    width: min(var(--site-max-width, 64rem), calc(100% - 3rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
}

.site-footer-brand-minimal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
}

.site-footer-brand-logo {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.42);
}

.site-footer-tagline {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.site-footer-links {
    display: flex;
    gap: 1.1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.site-footer-links a {
    transition: color 0.2s ease;
}

.site-footer-links a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.auth-kicker {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.auth-kicker.tone-moss {
    color: var(--color-moss);
}

.auth-kicker.tone-forest {
    color: var(--color-forest);
}

.auth-title {
    margin: 0.7rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    line-height: 1.1;
    color: white;
}

.auth-description {
    margin: 1rem 0 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .site-nav-inner,
    .site-footer-inner {
        width: calc(100% - 2rem);
    }

    .site-nav-links {
        gap: 0.9rem;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
