﻿:root {
    /* =========================
       Bright Foundry
    ========================== */

    --bf-forge-blue: #147BFF;
    --bf-electric-cyan: #19D3FF;
    --bf-ember-orange: #FF8A1F;
    --bf-forge-gold: #FFC247;
    --bf-deep-navy: #071226;
    --bf-midnight-slate: #0F172A;
    /* =========================
       AI Teen Coach
    ========================== */

    --atc-momentum-blue: #1F6FFF;
    --atc-focus-cyan: #22D3EE;
    --atc-growth-purple: #7C3AED;
    --atc-achievement-orange: #FF9A1F;
    --atc-deep-navy: #081120;
    --atc-midnight-surface: #111827;
    /* =========================
       Typography
    ========================== */

    --font-headline: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    /* =========================
       Surface System
    ========================== */

    --surface-primary: #081120;
    --surface-secondary: #111827;
    --surface-card: rgba(17, 24, 39, 0.88);
    /* =========================
       Borders
    ========================== */

    --border-soft: rgba(255,255,255,0.08);
    --border-focus: rgba(34,211,238,0.45);
    /* =========================
       Shadows + Glow
    ========================== */

    --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
    --glow-cyan: 0 0 24px rgba(34,211,238,0.18);
    --glow-blue: 0 0 30px rgba(31,111,255,0.20);
    /* =========================
       Gradients
    ========================== */

    --gradient-primary: linear-gradient( 135deg, #1F6FFF 0%, #22D3EE 100% );
    --gradient-achievement: linear-gradient( 135deg, #FF9A1F 0%, #FFC247 100% );
    --gradient-growth: linear-gradient( 135deg, #1F6FFF 0%, #7C3AED 100% );
}

/* =========================
   Dark Content Sections
========================= */

.atc-dark-section {
    background: #081120;
    color: #ffffff;
}

    .atc-dark-section h1,
    .atc-dark-section h2,
    .atc-dark-section h3,
    .atc-dark-section h4,
    .atc-dark-section h5,
    .atc-dark-section h6 {
        color: #ffffff;
    }

    .atc-dark-section p {
        color: rgba(255,255,255,0.72);
    }

    .atc-dark-section .btn-outline-primary {
        color: rgba(255,255,255,0.82);
        border-color: rgba(255,255,255,0.32);
    }

        .atc-dark-section .btn-outline-primary:hover {
            color: #ffffff;
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.48);
        }
    .atc-dark-section .text-muted {
        color: rgba(255,255,255,0.68) !important;
    }

    .atc-dark-section .card {
        color: #212529;
    }

        .atc-dark-section .card h1,
        .atc-dark-section .card h2,
        .atc-dark-section .card h3,
        .atc-dark-section .card h4,
        .atc-dark-section .card h5,
        .atc-dark-section .card h6 {
            color: #212529;
        }

        .atc-dark-section .card .text-muted {
            color: #6c757d !important;
        }


html,
body {
    background: radial-gradient( circle at top, rgba(31,111,255,0.12), transparent 35% ), var(--surface-primary);
    font-family: var(--font-body);
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.surface-card {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.glow-blue {
    box-shadow: var(--glow-blue);
}

.glow-cyan {
    box-shadow: var(--glow-cyan);
}

/* =========================
   Navbar System
========================= */

.navbar {
    background: rgba(8, 17, 32, 0.92) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.28);
}

.navbar-brand {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.15rem;
    color: white !important;
    letter-spacing: -0.03em;
}

.nav-link {
    color: rgba(255,255,255,0.72) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: white !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.18);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(34,211,238,0.28);
}

.navbar-toggler-icon {
    filter: invert(1);
}


/* =========================
   Logged-Out Navbar Buttons
========================= */

.navbar-auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-navbar-secondary {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88) !important;
    border-radius: 14px;
    padding: 0.65rem 1rem;
    font-weight: 700;
}

    .btn-navbar-secondary:hover {
        background: rgba(255,255,255,0.10);
        color: #ffffff !important;
    }

.btn-navbar-primary {
    border: none;
    background: var(--gradient-primary);
    color: #ffffff !important;
    border-radius: 14px;
    padding: 0.65rem 1rem;
    font-weight: 800;
    box-shadow: var(--glow-blue);
}

    .btn-navbar-primary:hover {
        color: #ffffff !important;
        transform: translateY(-1px);
    }
/* =========================
   Account Dropdown
========================= */

.navbar-account-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 0.6rem 0.9rem;
    color: white !important;
    transition: all 0.2s ease;
}

    .navbar-account-button:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.16);
    }

.atc-navbar {
    position: relative;
    z-index: 4000;
}

.account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: var(--glow-blue);
    flex-shrink: 0;
}

.account-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.account-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
}

.account-email {
    font-size: 0.92rem;
    font-weight: 600;
    color: white;
}

/* =========================
   Mobile Navbar Toggle
========================= */

.atc-navbar .navbar-toggler {
    border: 1px solid rgba(56,189,248,0.9);
    background: rgba(56,189,248,0.14);
    border-radius: 14px;
    padding: 0.6rem 0.8rem;
    transition: all 0.2s ease;
}

    .atc-navbar .navbar-toggler:hover,
    .atc-navbar .navbar-toggler:focus {
        background: rgba(56,189,248,0.22);
        border-color: #38bdf8;
        box-shadow: 0 0 0 0.2rem rgba(56,189,248,0.22), 0 0 18px rgba(56,189,248,0.28);
    }

.atc-navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}


/* =========================
   Dropdown Menu
========================= */

.account-dropdown {
    z-index: 5000;
    position: absolute;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 0.5rem;
    min-width: 240px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

    .account-dropdown .dropdown-item {
        color: rgba(255,255,255,0.82);
        border-radius: 12px;
        padding: 0.75rem 0.9rem;
        font-weight: 500;
    }

        .account-dropdown .dropdown-item:hover {
            background: rgba(255,255,255,0.06);
            color: white;
        }

    .account-dropdown .dropdown-divider {
        border-color: rgba(255,255,255,0.08);
    }

.logout-item {
    color: rgba(255,255,255,0.72) !important;
}

    .logout-item:hover {
        background: rgba(255,80,80,0.10) !important;
        color: #ffb4b4 !important;
    }
/* =========================
   Brand Logo
========================= */

.atc-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.atc-navbar-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: all 0.2s ease;
}

    .atc-navbar-logo:hover {
        transform: translateY(-1px);
    }

/* =========================
   Footer
========================= */

.atc-footer {
    background: linear-gradient( 180deg, #071226 0%, #081120 100% );
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 5rem;
    padding: 4rem 1.5rem;
}

.atc-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.atc-footer-logo {
    width: 320px;
    max-width: 100%;
    height: auto;
    mix-blend-mode: lighten;
}
.atc-footer-tagline {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    max-width: 620px;
    line-height: 1.7;
    margin: 0;
}

.atc-footer-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.45);
}

    .atc-footer-links a {
        color: rgba(255,255,255,0.72);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .atc-footer-links a:hover {
            color: white;
        }

.atc-footer-company {
    color: rgba(255,255,255,0.42);
    font-size: 0.9rem;
}

/* =========================
   Auth Pages
========================= */

.auth-page {
    padding: 5rem 0;
    background: radial-gradient(circle at top left, rgba(31,111,255,0.16), transparent 32%), radial-gradient(circle at bottom right, rgba(124,58,237,0.14), transparent 34%), #081120;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 2rem;
    align-items: stretch;
}

.auth-brand-panel,
.auth-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    background: rgba(17,24,39,0.82);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
}

.auth-brand-panel {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-brand-logo {
    width: 360px;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    mix-blend-mode: lighten;
}

.auth-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(34,211,238,0.12);
    color: #22D3EE;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-brand-copy h1 {
    color: #ffffff;
    font-size: clamp(2.3rem, 4vw, 4.25rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.auth-brand-copy p {
    color: rgba(255,255,255,0.72);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 620px;
}

.auth-card {
    padding: 2.25rem;
}

    .auth-card h2 {
        color: #ffffff;
        font-size: 2rem;
        margin-bottom: 0.45rem;
    }

.auth-card-subtitle {
    color: rgba(255,255,255,0.64);
    margin-bottom: 2rem;
}

.auth-label,
.auth-check-label {
    color: rgba(255,255,255,0.78);
    font-weight: 600;
}

.auth-input {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

    .auth-input:focus {
        background: rgba(255,255,255,0.08);
        color: #ffffff;
        border-color: rgba(34,211,238,0.55);
        box-shadow: 0 0 0 0.18rem rgba(34,211,238,0.16);
    }

.auth-password-toggle {
    border-radius: 0 14px 14px 0;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.auth-primary-button {
    border: none;
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 800;
    box-shadow: var(--glow-blue);
}

    .auth-primary-button:hover {
        color: #ffffff;
        transform: translateY(-1px);
    }

.auth-secondary-link {
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.62);
}

    .auth-secondary-link a {
        color: #22D3EE;
        font-weight: 700;
        text-decoration: none;
    }

        .auth-secondary-link a:hover {
            color: #ffffff;
        }

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 2rem;
    }

    .auth-card {
        padding: 2rem;
    }
}

/* =========================
   Legal Pages
========================= */

.legal-page {
    background: #f8fafc;
    color: #1e293b;
}

    .legal-page h1,
    .legal-page h2,
    .legal-page h3,
    .legal-page h4,
    .legal-page h5,
    .legal-page h6 {
        color: #0f172a;
    }

    .legal-page p,
    .legal-page li {
        color: #475569;
        line-height: 1.8;
    }


/*================================
    COACH PAGE
*/
.coach-type-preview {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}

.coach-type-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.coach-type-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.auth-input option {
    background-color: #1b2435;
    color: #ffffff;
}