/* QuantSet sign-in. Loads after docs.css for the shared type and brand mark, then sets the
   same warm paper, ink and amber as the home page. The forest stays: this screen has one job,
   and calm footage serves it better than anything that moves for attention. */

.auth { --paper: #f6f5f1; --paper-2: #eeece5; --ink: #0e0f0c; --ink-2: #45463f; --ink-3: #76776e; --line: rgba(14, 15, 12, 0.1); --line-2: rgba(14, 15, 12, 0.18); --amber: #ffb224; min-height: 100vh; background: var(--paper); color: var(--ink); }
.auth-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100vh; }
.auth-solo .auth-main { grid-template-columns: minmax(0, 1fr); }
.auth-form { display: flex; flex-direction: column; width: 100%; max-width: 488px; margin: 0 auto; padding: 32px 32px 36px; }
.auth .brand { font-size: 18px; letter-spacing: -0.02em; }
.auth .brand-mark { width: 20px; height: 20px; }
.auth-card { margin: auto 0; padding: 48px 0; }
.js .auth-card > * { animation: auth-rise 700ms var(--ease) both; }
.js .auth-card > :nth-child(2) { animation-delay: 60ms; }
.js .auth-card > :nth-child(3) { animation-delay: 120ms; }
.js .auth-card > :nth-child(n + 4) { animation-delay: 180ms; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.auth h1 { font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; text-wrap: balance; }
.auth-lead { margin: 16px 0 32px; font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: pretty; }
.auth-lead b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.auth-plan { display: inline-flex; align-items: center; gap: 8px; height: 28px; margin: 0 0 20px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; line-height: 20px; font-weight: 500; }
.auth-plan::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

.auth form { display: grid; gap: 8px; }
.auth label { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.auth form > label:first-child { margin-top: 0; }
.auth [data-password-row] { display: grid; gap: 8px; }
.auth input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; line-height: 24px; transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.auth input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 178, 36, 0.32); }
.auth input::placeholder { color: var(--ink-3); }

/* The code: six boxes that fill as you type or paste. The real field sits behind them. */
.auth .auth-code { font: 500 24px/32px var(--mono); letter-spacing: 0.4em; text-align: center; }
.auth .auth-code::placeholder { color: var(--line-2); }
.auth-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.auth-digits input { height: 64px; padding: 0; text-align: center; font: 500 28px/1 var(--mono); caret-color: var(--amber); }
.auth-digits input:nth-child(3) { margin-right: 8px; }
.auth-digits input.filled { border-color: var(--ink); }
.auth-digits.wrong input { border-color: var(--bad); animation: auth-shake 360ms var(--ease); }
@keyframes auth-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.auth .auth-code.behind { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }

.auth-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; margin-top: 8px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color 300ms var(--ease), background-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.auth-btn:hover { border-color: var(--ink); }
.auth-btn:active { transform: scale(0.98); }
.auth-btn svg { width: 20px; height: 20px; }
.auth-primary { border-color: transparent; background: var(--amber); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px -12px rgba(190, 120, 0, 0.7); }
.auth-primary:hover { border-color: transparent; background: #ffc14d; transform: translateY(-1px); }
.auth-btn[disabled] { opacity: 0.6; pointer-events: none; }
.auth-btn.busy::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(14, 15, 12, 0.25); border-top-color: var(--ink); border-radius: 50%; animation: auth-spin 700ms linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-github { margin-top: 0; }
.auth-or { display: flex; align-items: center; gap: 16px; margin: 20px 0; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-error { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--bad); }
.auth-card > .auth-error { margin: -16px 0 24px; }
.auth-link { margin-top: 20px; padding: 0; border: 0; background: none; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color 300ms var(--ease); }
.auth-link:hover { text-decoration-color: var(--ink); }
.auth-link[disabled] { color: var(--ink-3); text-decoration: none; pointer-events: none; }
.auth-row { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; }
.auth-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.auth-points li { display: inline-flex; align-items: center; gap: 8px; }
.auth-points li::before { content: ""; width: 12px; height: 12px; background: #177a47; clip-path: polygon(12% 50%, 0 64%, 38% 100%, 100% 24%, 88% 10%, 38% 72%); }
.auth-swap { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.auth-swap a, .auth-legal a, .auth-dev a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.auth-legal { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.auth-dev { margin: 20px 0 0; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 20px; color: var(--ink-2); }

.auth-match { margin: 0 0 24px; padding: 20px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; font: 500 36px/1 var(--mono); letter-spacing: 0.12em; text-align: center; }
.auth-solo .auth-form { max-width: 520px; }

/* The side: the forest, with what happens in the first minute laid over it on glass. */
.auth-side { position: relative; display: flex; align-items: flex-end; margin: 12px; border-radius: 24px; background: #000710 url("/assets/hero-mountains-poster.jpg") center / cover; color: #fff; overflow: hidden; }
.auth-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 7, 16, 0.08) 0%, rgba(0, 7, 16, 0.2) 40%, rgba(0, 7, 16, 0.82) 100%); }
.auth-pitch { position: relative; z-index: 1; width: 100%; max-width: 600px; padding: 48px; }
.auth-headline { margin: 0; font: 400 48px/1.02 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.auth-headline span { color: rgba(255, 255, 255, 0.62); }
.auth-steps { display: grid; margin: 28px 0 0; padding: 8px 20px; list-style: none; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; background: rgba(8, 12, 18, 0.42); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.auth-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; }
.auth-steps li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.auth-steps b { display: block; font-size: 16px; line-height: 24px; font-weight: 500; }
.auth-steps span { display: block; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.7); }
.auth-steps i { position: relative; width: 24px; height: 24px; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 50%; transition: background-color 400ms var(--ease), border-color 400ms var(--ease); }
.auth-steps i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #0e0f0c; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 400ms var(--ease) 80ms; }
.auth-steps li.done i { border-color: var(--amber); background: var(--amber); }
.auth-steps li.done i::after { transform: rotate(45deg) scale(1); }
.js .auth-steps li { opacity: 0.55; transition: opacity 400ms var(--ease); }
.js .auth-steps li.done { opacity: 1; }

@media (max-width: 960px) {
  .auth-main { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-form { padding: 24px 20px 32px; }
  .auth h1 { font-size: 36px; line-height: 40px; }
  .auth-lead { font-size: 16px; line-height: 24px; }
  .auth-digits { gap: 6px; }
  .auth-digits input { height: 56px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-video { display: none; }
  .js .auth-card > * { animation: none; }
  .js .auth-steps li { opacity: 1; }
}
