/* ═══════════════════════════════════════════════════════════════
   ActionDash — Neon Base Theme
   Shared foundation styles for non-dashboard pages (login, errors).
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyan: #00f0ff;
    --magenta: #ff00aa;
    --purple: #8b5cf6;
    --deep-bg: #06060e;
    --card-bg: rgba(10, 10, 22, 0.85);
    --card-border: rgba(0, 240, 255, 0.12);
    --text: #c8d6e5;
    --text-dim: #5a6a7a;
    --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.35), 0 0 40px rgba(0, 240, 255, 0.08);
    --glow-magenta: 0 0 12px rgba(255, 0, 170, 0.35), 0 0 40px rgba(255, 0, 170, 0.08);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Chakra Petch', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--deep-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scanline overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.015) 2px,
        rgba(0, 240, 255, 0.015) 4px
    );
}

/* Ambient purple glow */
body::before {
    content: '';
    position: fixed;
    width: 900px;
    height: 900px;
    top: -300px;
    right: -200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* Neon button (reusable) */
.neon-btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
}

.neon-btn:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* Page container */
.neon-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Card panel */
.neon-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    backdrop-filter: blur(14px);
}

.neon-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: #e8eef4;
    margin-bottom: 0.5rem;
    text-align: center;
}

.neon-card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Site branding */
.neon-brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 2rem;
}

/* Landing page hero */
.landing-hero {
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-hero h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    color: #e8eef4;
    margin-bottom: 12px;
}

.landing-hero p {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

/* OAuth buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 14px 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid var(--card-border);
    transition: all 0.3s;
    cursor: pointer;
}

.oauth-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
    text-shadow: none;
}

.oauth-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.oauth-btn-github { color: #e8eef4; }
.oauth-btn-google { color: #e8eef4; }
.oauth-btn-microsoft { color: #e8eef4; }
.oauth-btn-discord { color: #e8eef4; }
.oauth-btn-facebook { color: #e8eef4; }
.oauth-btn-twitter { color: #e8eef4; }

.oauth-btn-github:hover { border-color: #e8eef4; box-shadow: 0 0 12px rgba(232, 238, 244, 0.15); }
.oauth-btn-google:hover { border-color: #4285f4; box-shadow: 0 0 12px rgba(66, 133, 244, 0.25); }
.oauth-btn-discord:hover { border-color: #5865f2; box-shadow: 0 0 12px rgba(88, 101, 242, 0.25); }

.login-divider {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.login-divider p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.no-providers {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    padding: 1rem;
}


/* ── Error Pages ── */

.error-code {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 5rem;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: #e8eef4;
    text-align: center;
    margin-bottom: 0.5rem;
}

.error-message {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 2rem;
}

.error-actions {
    text-align: center;
}

.error-hint {
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text);
}

.error-hint summary {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    cursor: pointer;
    margin-bottom: 0.5rem;
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
