html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: var(--text-body-size); line-height: var(--text-body-leading); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 22px; font-weight: var(--font-weight-bold); letter-spacing: -.025em; text-decoration: none; }
.brand-mark { display: inline-flex; width: 27px; height: 27px; align-items: flex-end; gap: 3px; padding: 5px; border-radius: 7px; background: linear-gradient(145deg, #fff, #d9edff); }
.brand-mark i { display: block; width: 4px; border-radius: 3px; background: var(--blue-700); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 12px; }
.eyebrow { margin: 0 0 var(--space-2); color: var(--blue-700); font-size: var(--text-small-size); font-weight: var(--font-weight-semibold); line-height: var(--text-small-leading); }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--muted); line-height: var(--text-body-leading); }
.auth-view { display: grid; min-height: 100vh; grid-template-columns: minmax(400px, .9fr) minmax(520px, 1.1fr); background: #fff; }
.auth-story { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: clamp(28px, 5vw, 72px); overflow: hidden; color: #fff; background: radial-gradient(circle at 90% 15%, rgba(20, 114, 211, .55), transparent 35%), linear-gradient(145deg, #061a35, #0b3564); }
.auth-pitch h1 { max-width: 12ch; margin-bottom: var(--space-4); font-size: var(--text-display-size); line-height: var(--text-display-leading); }
.auth-pitch p { color: #d8e7f7; font-size: var(--text-body-large-size); }
.auth-relay-flow { display: grid; width: min(100%, 520px); grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px 0; border-block: 1px solid rgba(255,255,255,.16); }
.auth-relay-flow > span { display: grid; justify-items: center; gap: 7px; color: #d8e7f7; }
.auth-relay-flow b { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0; padding: 0; color: #d8e7f7; list-style: none; }
.auth-panel { display: flex; min-height: 100vh; flex-direction: column; justify-content: center; padding: 42px clamp(28px, 8vw, 130px) 22px; background: linear-gradient(180deg, #fff, #f8fafe); }
.auth-card { width: min(100%, 500px); margin: auto; }
.auth-topline { display: flex; align-items: center; justify-content: space-between; }
.auth-card h2 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-h1-size); line-height: var(--text-h1-leading); }
.auth-intro { margin-bottom: 26px; }
.language-picker { position: relative; display: inline-flex; align-items: center; }
.language-picker select { width: auto; min-width: 148px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; font-size: var(--text-small-size); font-weight: var(--font-weight-semibold); }
input, select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 82px; }
.password-toggle { position: absolute; top: 4px; right: 4px; min-width: 76px; height: 36px; border: 0; color: var(--blue-700); background: transparent; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 16px; font-weight: var(--font-weight-semibold); text-decoration: none; }
.button.primary { color: #fff; background: var(--blue-700); }
.button.full { width: 100%; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; color: var(--blue-700); background: transparent; font-weight: var(--font-weight-semibold); }
.auth-mode-switch { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: var(--text-small-size); }
.secondary-auth-form, .verification-area, .legal-creation-gate { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: 17px; min-height: 17px; }
.message { margin-bottom: 16px; padding: 12px 15px; border: 1px solid #a6ddc3; border-radius: 9px; color: #07613e; background: #eaf8f1; }
.auth-footer { width: 100%; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .auth-view { display: block; }
  .auth-story { min-height: 390px; padding: 26px 22px; }
  .auth-pitch { margin: 42px 0 20px; }
  .trust-list { display: none; }
  .auth-panel { min-height: auto; padding: 34px 22px 22px; }
  body[data-customer-route="signup"] .auth-story { min-height: 126px; padding: 24px 22px; }
  body[data-customer-route="signup"] .auth-pitch,
  body[data-customer-route="signup"] .auth-relay-flow,
  body[data-customer-route="signup"] .trust-list { display: none; }
  body[data-customer-route="signup"] .auth-panel { padding-top: 24px; }
}
