/* Landing page — UI styles. Loaded by Pages/Index.cshtml (standalone, Layout = null). */

/* ---- Design tokens -------------------------------------------------------
   Same names and values as slotbooking.css so the two pages read as one app.
   Light is the default; [data-theme="dark"] on <html> overrides the same names. */
:root {
    color-scheme: light;
    --brand: #4f46e5;
    --brand-050: #eef2ff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --subtle: #f8fafc;
    --tag-ink: #3730a3;
    --page: linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #f1f5f9 100%);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, .10), 0 4px 12px rgba(15, 23, 42, .05);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --brand: #818cf8;
    --brand-050: #262a52;
    --ink: #e5e9f0;
    --muted: #94a3b8;
    --line: #334155;
    --surface: #1e293b;
    --subtle: #172033;
    --tag-ink: #c7d2fe;
    --page: linear-gradient(135deg, #0b1120 0%, #0f172a 55%, #111827 100%);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--page);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.card {
    width: 100%;
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
    text-align: center;
}

/* Which card shows. The head script stamps data-oauth="1" on <html> when the URL fragment carries an
   access token, so the swap happens before first paint — no flash of the "use your course link" copy
   in front of a candidate who is actually mid-sign-in. */
#signinCard { display: none; }

:root[data-oauth="1"] #landingCard { display: none; }
:root[data-oauth="1"] #signinCard { display: block; }

/* Sign-in spinner — same 1s linear rotation as the CourseForm hand-off spinner. */
.spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 18px;
    border: 3px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .spinner { animation: none; }
}

/* Brand mark: the app ships no logo asset, so the wordmark's initial stands in for one. */
.mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 28px 0 24px;
}

/* The one thing a visitor who lands here actually needs to know. */
.note {
    background: var(--brand-050);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--tag-ink);
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.note strong { font-weight: 600; }

.foot {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.foot a {
    color: var(--brand);
    text-decoration: none;
}

.foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .card { padding: 32px 22px; }
    h1 { font-size: 24px; }
}
