/*
 * The sign-on pages' shared look (design/login-flow-v2.html, Theo 8 Oct 2026):
 * the sign-on page itself (templates/signon.html, screens 1 to 2d), the hand
 * back to Claude (templates/oauth_handback.html, screen 3) and the
 * first-login landing (templates/welcome.html, screen 4).
 *
 * Anthropic's login pattern: the form on the left, the site's photograph on
 * the right (.photo, with the Claude chat of templates/_signon_aside.html
 * over it on the sign-in screens), hidden below 820 px. Brand: Archivo,
 * coral, forest, bone, ink; square corners. Each page keeps only its own
 * rules inline after this file.
 */

:root {
    --coral: #da7756; --coral-dark: #c4683f; --coral-ink: #b4532f; --forest: #102a1c; --bone: #f7f6f3;
    --ink: #111111; --ink-2: #555555; --rule: #e5e4e0; --on-forest: #a8bdae; --gain: #237a43;
    --error-bg: #fbeeea; --error-ink: #8b2e22; --ok-bg: #eef5f0; --ok-ink: #1b5a2e;
}
* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }
html, body { height: 100%; }
body {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bone); color: var(--ink); font-size: 16px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout: the form column and the photograph */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 100vh; }
.shell.land { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pane { padding: 32px 40px 48px; display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 36px; }
.top .ws { font-size: 14px; color: var(--ink-2); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.form-col { max-width: 420px; width: 100%; margin: auto 0; }
.form-col.wide { max-width: 480px; }

/* Type */
.kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 12px; font-weight: 600; }
.kicker.ok { color: var(--gain); }
h1 { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
h1.small { font-size: 28px; }
.lede { color: var(--ink-2); margin-bottom: 24px; }
.lede strong { color: var(--ink); }
.fine { font-size: 14px; color: var(--ink-2); margin-top: 20px; line-height: 1.7; }

/* Controls */
.btn {
    display: block; width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; font-weight: 600;
    border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-align: center;
    text-decoration: none; margin-top: 12px;
}
.btn:hover { background: #f1efea; }
.btn.primary { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn.primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.btn.inline { display: inline-block; width: auto; padding: 16px 28px; font-size: 17px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
button.link { color: var(--ink); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }

/* The phrase to type in Claude, with its Copy button */
.say { display: flex; margin-top: 10px; border: 1px solid var(--ink); background: #fff; }
.say code { flex: 1; padding: 14px 16px; font-family: 'Courier New', Courier, monospace; font-size: 16px; }
.say button { font: inherit; font-size: 15px; font-weight: 600; padding: 0 18px; background: #fff; border: 0; border-left: 1px solid var(--ink); cursor: pointer; }
.say button:hover { background: #f1efea; }

details.more { margin-top: 26px; font-size: 14px; color: var(--ink-2); }
details.more summary { cursor: pointer; color: var(--ink); font-weight: 500; }
details.more p { margin-top: 10px; }

/* The right pane: the site's photograph, with a Claude chat over it */
.photo {
    position: relative; min-height: 100vh;
    background: linear-gradient(rgba(11, 31, 20, 0.25), rgba(11, 31, 20, 0.78)),
                var(--forest) url('https://quarri.ai/images/opt/stacked-logs-2-sm.webp') center / cover no-repeat;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    padding: 48px clamp(24px, 4vw, 64px);
}
.photo.landing { background: var(--forest) url('https://quarri.ai/images/opt/forestry-vertical-page-1.webp') center / cover no-repeat; }
.chat { width: min(480px, 100%); background: #fff; border: 1px solid rgba(255, 255, 255, 0.13); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28); font-size: 15px; }
.chat .bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.chat .bar i { width: 7px; height: 7px; background: var(--rule); display: inline-block; }
.chat .body { padding: 20px 20px 8px; display: grid; gap: 14px; }
.chat .u { justify-self: end; background: var(--bone); border: 1px solid var(--rule); padding: 8px 12px; max-width: 80%; }
.chat .tool { justify-self: start; font-size: 12px; color: var(--ink-2); border: 1px solid var(--rule); padding: 4px 8px; }
.chat .a p { margin: 0 0 8px; }
.chat .in { margin: 8px 16px 16px; border: 1px solid #d8d5cd; display: flex; align-items: center; padding: 10px 10px 10px 14px; gap: 10px; }
.chat .in span { flex: 1; }
.chat .in b { width: 30px; height: 30px; background: var(--coral); display: grid; place-items: center; color: #fff; font-weight: 400; }
.how { width: min(480px, 100%); color: #fff; font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.how .kicker { display: block; color: #f0906a; margin-bottom: 6px; }

@media (max-width: 820px) {
    .shell, .shell.land { grid-template-columns: 1fr; }
    .photo { display: none; }
    .pane { padding: 24px 16px 40px; }
    h1 { font-size: 28px; }
}
