/* ── AUTH & HOME PAGES ── */
:root {
    --bg: #121212;
    --surface: #1E1E1E;
    --card: #1E1E1E;
    --border: #2A2A2A;
    --accent: #5FA8D3;
    --accent-dim: rgba(95,168,211,0.15);
    --accent-glow: rgba(95,168,211,0.4);
    --text: #E5E7EB;
    --muted: #9CA3AF;
    --subtle: #2A2A2A;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

.auth-page {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

/* noise texture */
.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.018;
    pointer-events: none;
    z-index: 1000;
}

/* accent glow background */
.auth-page::after {
    content: '';
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(95,168,211,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── LOGO ── */
.auth-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: 0.06em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.auth-logo span { color: var(--accent); }

.auth-tagline {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    margin-bottom: 40px;
}

/* ── CARD ── */
.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    animation: authFadeIn 0.4s ease both;
}

.auth-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 24px;
}

/* ── FORM ── */
.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    background: var(--subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    padding: 13px 16px;
    transition: border-color 0.15s, background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(95,168,211,0.05);
}
.auth-input::placeholder { color: var(--muted); }

/* ── ERROR ── */
.auth-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    color: #ef4444;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

/* ── SUBMIT BUTTON ── */
.auth-btn-primary {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(95,168,211,0.3);
    position: relative;
    overflow: hidden;
}
.auth-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.auth-btn-primary:hover:not(:disabled) {
    background: #4A8FB5;
    box-shadow: 0 4px 28px rgba(95,168,211,0.5);
}
.auth-btn-primary:disabled { opacity: 0.5; cursor: default; }

/* ── FOOTER LINK ── */
.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── HOME PAGE ── */
.home-page {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* noise texture */
.home-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.018;
    pointer-events: none;
    z-index: 1000;
}

.home-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18,18,18,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.05em;
    color: var(--text);
    text-transform: uppercase;
}
.home-logo span { color: var(--accent); }

.home-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.home-header-actions a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.15s;
}

.home-header-actions .link-login {
    color: var(--muted);
    border: 1px solid var(--border);
}
.home-header-actions .link-login:hover { color: var(--text); border-color: var(--muted); }

.home-header-actions .link-register {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px rgba(95,168,211,0.3);
}
.home-header-actions .link-register:hover { background: #4A8FB5; }

/* ── HERO ── */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 55px);
    padding: 60px 24px 100px;
    position: relative;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(95,168,211,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-hero-eyebrow::before,
.home-hero-eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.home-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(52px, 12vw, 96px);
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 24px;
}
.home-hero-title span { color: var(--accent); }

.home-hero-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 48px;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-btn-primary {
    padding: 15px 36px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(95,168,211,0.35);
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.home-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.home-btn-primary:hover { background: #4A8FB5; box-shadow: 0 4px 28px rgba(95,168,211,0.5); }

.home-btn-secondary {
    padding: 15px 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}
.home-btn-secondary:hover { border-color: var(--muted); background: var(--subtle); }

/* ── DASHBOARD (authenticated) ── */
.home-content {
    padding: 24px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
    margin: 0 auto;
}

.home-welcome {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 0 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-welcome::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.home-username {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 34px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    margin-top: -6px;
}
.home-username span { color: var(--accent); }

.home-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.home-action-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    animation: authFadeIn 0.35s ease both;
}
.home-action-card:nth-child(1) { animation-delay: 0.05s; }
.home-action-card:nth-child(2) { animation-delay: 0.12s; }
.home-action-card:nth-child(3) { animation-delay: 0.19s; }

.home-action-card:hover {
    border-color: rgba(95,168,211,0.4);
    box-shadow: 0 0 24px rgba(95,168,211,0.08);
}

.home-action-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid rgba(95,168,211,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.home-action-info { flex: 1; }

.home-action-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.home-action-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.home-action-arrow {
    color: var(--muted);
}

/* ── ANIMATION ── */
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-card    { animation: authFadeIn 0.4s ease both; }
.auth-logo    { animation: authFadeIn 0.3s ease both; }
.auth-tagline { animation: authFadeIn 0.35s 0.05s ease both; }
