/* CarSyncPro Tenant Host — self-contained styles (no external assets, strict
   CSP friendly). Light + dark aware. */

:root {
    --bg: #eef2f7;
    --bg-accent: #e2e8f2;
    --card: #ffffff;
    --ink: #16213a;
    --ink-soft: #5b6472;
    --line: #d9e0ea;
    --brand: #004b8d;
    --brand-ink: #ffffff;
    --brand-hover: #003a6e;
    --radius: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f141c;
        --bg-accent: #141b26;
        --card: #1a2130;
        --ink: #e8ecf3;
        --ink-soft: #9aa4b4;
        --line: #2b3547;
        --brand: #3f83c4;
        --brand-hover: #5497d4;
    }
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 50% -10%, var(--bg-accent), var(--bg));
    color: var(--ink);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.card {
    width: 100%;
    max-width: 28rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem 1.9rem;
    box-shadow: 0 10px 30px rgba(16, 26, 45, 0.10);
    text-align: center;
}

.brand { margin-bottom: 1.5rem; }
.brand-logo {
    display: block;
    width: 210px;
    max-width: 72%;
    height: auto;
    margin: 0 auto;
}
.brand-sub {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
/* On the dark card only the near-black "Car" is lightened; the brand blue
   (#004b8d) and orange stay. */
@media (prefers-color-scheme: dark) {
    .brand-logo .logo-car { fill: #e8ecf3; }
}

h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0 0 0.55rem;
    letter-spacing: -0.01em;
}

.lede { margin: 0 auto 1.4rem; max-width: 24rem; color: var(--ink-soft); }

.facts {
    text-align: left;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    font-size: 0.95rem;
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; word-break: break-all; }

button[type="submit"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-ink);
    background: var(--brand);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.12s ease;
}
button[type="submit"]:hover { background: var(--brand-hover); }

.links { margin: 1.25rem 0 0; text-align: center; }
.links a { color: var(--brand); font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }

.note {
    margin: 1.25rem 0 0;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.foot {
    margin-top: 1.25rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.foot .lock { opacity: 0.8; }

/* Prelaunch registration (pilot signup) */
.pl-badge { display: inline-block; margin-bottom: 0.75rem; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand);
    background: rgba(0, 75, 141, 0.10); border-radius: 2rem; padding: 0.3rem 0.85rem; }
@media (prefers-color-scheme: dark) { .pl-badge { background: rgba(63, 131, 196, 0.16); } }

/* Demo login form (demo instance only) */
.demo-form { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.25rem 0 0; text-align: left; }
.demo-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; color: var(--ink-soft); }
.demo-form input { border: 1px solid var(--line); background: var(--card); color: var(--ink);
    border-radius: 0.55rem; padding: 0.62rem 0.7rem; font: inherit; font-size: 1rem; }
.demo-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,75,141,0.14); }
.demo-form button { margin-top: 0.4rem; background: var(--brand); color: var(--brand-ink); border: 0;
    border-radius: 0.55rem; padding: 0.72rem; font: inherit; font-size: 1rem; font-weight: 650; cursor: pointer; }
.demo-form button:hover { background: var(--brand-hover); }
.form-error { margin: 0.9rem 0 0; color: #c02617; font-size: 0.9rem; }
.hint { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.hint b { color: var(--ink); }
