/*
 * Microbooks auth screens.
 *
 * These tokens mirror the site's design system (parathyro src/app.css)
 * so the hosted login/consent pages feel like part of the same product.
 * Keep the two in sync when the brand changes.
 */

:root {
    --brand: #0070f3;
    --brand-strong: #0761d1;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --border: #e2e8f0;
    --danger: #b42318;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem;
}

.wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    color: var(--ink);
    text-decoration: none;
}

.wordmark span {
    color: var(--brand);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 2rem;
    width: 100%;
    max-width: 24rem;
}

h1 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}

p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--ink);
}

input:focus {
    outline: 2px solid var(--brand);
    outline-offset: -1px;
    border-color: var(--brand);
}

button {
    width: 100%;
    padding: 0.6rem;
    border: 0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease;
}

.primary {
    background: var(--brand);
    color: #fff;
}

.primary:hover {
    background: var(--brand-strong);
}

.secondary {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--border);
}

.secondary:hover {
    background: var(--border);
}

.error {
    color: var(--danger);
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.scopes {
    margin: 0.75rem 0;
    padding: 0;
    list-style: none;
}

.scopes li {
    font-size: 0.9rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.scopes li:last-child {
    border-bottom: 1px solid var(--border);
}

.scopes li::before {
    content: "✓";
    color: var(--brand);
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.actions form {
    flex: 1;
}

.footnote {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 1.25rem;
    text-align: center;
}
