/* NexWAYPOINT stylesheet -- design tokens, reset, base elements, auth screens
   Part of the css/ set loaded in order by public/_head_assets.php.
   Boundaries are contiguous line ranges; keep cascade order across files. */

:root,
[data-theme="light"] {
    color-scheme: light;
    --bg: #f1f5f9;
    --panel: #ffffff;
    --border: #cbd5e1;
    --text: #0f172a;
    --text-dim: #475569;
    --accent: #0369a1;
    --accent-contrast: #ffffff;
    --green: #15803d;
    --yellow: #a16207;
    --red: #b91c1c;
    --alert-error-bg: #fef2f2;
    --alert-success-bg: #f0fdf4;
    --badge-blacklist-bg: #fee2e2;
    --badge-home-bg: #dcfce7;
    --badge-travel-bg: #e0f2fe;
    --badge-delay-bg: #fef9c3;
    --input-bg: #ffffff;
    --nav-bg: #ffffff;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f172a;
    --panel: #1e293b;
    --border: #334155;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --accent: #38bdf8;
    --accent-contrast: #04121f;
    --green: #4ade80;
    --yellow: #facc15;
    --red: #f87171;
    --alert-error-bg: rgba(248, 113, 113, 0.15);
    --alert-success-bg: rgba(74, 222, 128, 0.15);
    --badge-blacklist-bg: rgba(248, 113, 113, 0.2);
    --badge-home-bg: rgba(74, 222, 128, 0.2);
    --badge-travel-bg: rgba(56, 189, 248, 0.2);
    --badge-delay-bg: rgba(250, 204, 21, 0.2);
    --input-bg: #0f172a;
    --nav-bg: #1e293b;
    --shadow: none;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: var(--accent);
}

a:hover {
    text-decoration: underline;
}

.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-box {
    background: var(--panel);
    padding: 2rem;
    border-radius: 8px;
    width: 320px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.auth-box h1 { margin-top: 0; font-size: 1.4rem; color: var(--text); text-align: center; }
.auth-mark {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.85rem;
}
.auth-mark svg { display: block; width: 48px; height: 48px; }
.auth-tagline {
    margin: -0.35rem 0 1.15rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
}
.auth-box form { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.auth-box label { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.5rem; }
.auth-box input {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
}
.auth-box button {
    margin-top: 1rem;
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
    cursor: pointer;
}
.auth-box .theme-toggle-wrap {
    margin-top: 1.25rem;
    text-align: center;
}

