/* Board 02 — sign in and onboarding (approved 20-board package). */
@font-face { font-family: Caveat; src: url('/assets/caveat.woff2') format('woff2'); font-weight: 600; font-display: swap; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 30px; height: 30px; stroke-width: 1.5; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.script { font-family: Caveat, 'Segoe Script', cursive; font-weight: 600; line-height: 1.05; transform: rotate(-9deg); }

body.auth-view { background: #f4f7fa; }
body.auth-view>.sidebar, body.auth-view>.mobile-header, body.auth-view>main, body.auth-view>.mobile-navigation { display: none; }

/* Language selector */
.lang-select { position: absolute; top: 22px; right: 26px; min-height: 36px; padding: 6px 11px; gap: 6px; border: 1px solid #dbe4ec; background: white; color: var(--navy); font-size: 13px; font-weight: 600; box-shadow: none; }
.lang-select:hover { background: #f4f8fb; color: var(--navy); box-shadow: none; }
.lang-select .ico { width: 17px; height: 17px; }
.lang-select .chev { width: 14px; height: 14px; }

/* ---------- Sign in ---------- */
.auth-page { max-width: 1440px; margin: 0 auto; padding: 32px; }
.auth-split { display: grid; grid-template-columns: 48.3% 1fr; min-height: 780px; border-radius: 14px; overflow: hidden; background: white; box-shadow: 0 10px 34px #0620470f; }
.auth-hero { position: relative; display: flex; flex-direction: column; padding: 34px 40px 0; background: var(--sidebar); color: white; overflow: hidden; }
.auth-logo img { display: block; width: 150px; height: auto; }
.auth-hero-title { margin-top: 44px; color: white; font-size: 52px; font-weight: 700; letter-spacing: -1.6px; line-height: 1.08; }
.auth-hero-lead .phone-copy { display: none; }
.auth-hero-lead { max-width: 430px; margin-top: 18px; color: #e6eef7; font-size: 19px; line-height: 1.4; }
.auth-features { display: flex; gap: 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.auth-features li { display: flex; gap: 12px; align-items: flex-start; max-width: 190px; }
.auth-features .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.auth-features strong { display: block; color: white; font-size: 15px; font-weight: 600; }
.auth-features small { color: #c9d6e6; font-size: 12px; line-height: 1.45; }
.auth-hero-art { position: relative; flex: 1; min-height: 400px; margin: 10px -40px 0; }
.auth-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.auth-hero-art .script { position: absolute; right: 7%; top: 26%; color: white; font-size: 34px; }

.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 70px 48px 40px; }
.auth-form { width: min(100%, 470px); }
.auth-form h2 { font-size: 34px; font-weight: 650; letter-spacing: -1px; line-height: 1.2; }
.auth-sub { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.auth-form label, .onboarding-step label:not(.applicant-card):not(.interest-chips label) { display: block; margin: 26px 0 8px; font-size: 14px; font-weight: 600; }
.auth-form input, .onboarding-step input:not([type=radio]):not([type=checkbox]), .onboarding-step textarea, .select-wrap select {
  width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid #d5dee7; border-radius: 7px; background: white; color: var(--navy); font-size: 15px; }
.auth-form input::placeholder, .onboarding-step input::placeholder, .onboarding-step textarea::placeholder { color: #6f7f96; }
.auth-form input:focus, .onboarding-step input:focus, .onboarding-step textarea:focus, .select-wrap select:focus { outline: 2px solid #00a3ad55; border-color: var(--teal); }
.auth-primary { width: 100%; min-height: 54px; margin-top: 18px; font-size: 16px; position: relative; }
.auth-primary .ico, #onboarding-submit .ico { width: 19px; height: 19px; }
.auth-primary .ico { position: absolute; right: 20px; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.auth-or:before, .auth-or:after { content: ''; flex: 1; height: 1px; background: #e2e9f0; }
.auth-passkey { width: 100%; min-height: 72px; justify-content: center; gap: 16px; border: 1px solid #00a3ad; background: white; color: var(--navy); box-shadow: none; }
.auth-passkey:hover { background: #f1fafb; color: var(--navy); }
.auth-passkey .ico { width: 26px; height: 26px; color: var(--navy); }
.auth-passkey span { text-align: left; }
.auth-passkey strong { display: block; font-size: 16px; font-weight: 600; }
.auth-passkey small { color: var(--muted); font-size: 12px; }
.auth-status { min-height: 0; margin-top: 14px; color: var(--teal-dark); font-size: 13px; }
.auth-status:empty { display: none; }
.auth-status.error { color: #b42318; }
.auth-new { margin-top: 34px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-new a, .auth-terms a { font-weight: 600; }
.auth-terms { max-width: 320px; margin: 26px auto 0; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }

.auth-company { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: 28px; padding: 34px 40px 0; border-radius: 14px; background: white; box-shadow: 0 10px 34px #0620470f; overflow: hidden; }
.auth-company-copy h2 { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 650; letter-spacing: -.5px; }
.auth-company-copy h2 .ico { width: 34px; height: 34px; color: var(--navy); stroke-width: 1.5; }
.auth-company-copy>p { margin: 8px 0 0 48px; color: var(--muted); font-size: 15px; }
.auth-company-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 34px; }
.auth-company-cards article { display: flex; flex-direction: column; align-items: center; padding: 22px 14px; border: 1px solid #e3eaf1; border-radius: 10px; text-align: center; }
.auth-company-cards .ico { width: 44px; height: 44px; margin-bottom: 14px; color: var(--teal-dark); stroke-width: 1.5; }
.auth-company-cards strong { font-size: 16px; font-weight: 650; line-height: 1.3; }
.auth-company-cards small { margin-top: 6px; font-size: 13px; }
.auth-company-art { position: relative; min-height: 300px; }
.auth-company-art img { position: absolute; right: -4%; bottom: -16%; width: 64%; height: auto; }
.auth-company-art .script { position: absolute; left: 4%; top: 12%; z-index: 1; color: var(--navy); font-size: 34px; text-align: center; }
.auth-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.auth-trust li { display: flex; align-items: center; gap: 14px; padding: 6px 22px; border-left: 1px solid #dbe3eb; }
.auth-trust li:first-child { border-left: 0; }
.auth-trust .ico { width: 32px; height: 32px; color: var(--navy); stroke-width: 1.5; }
.auth-trust strong { display: block; font-size: 14px; font-weight: 600; }
.auth-trust small { font-size: 12px; }

/* ---------- Onboarding ---------- */
.onboarding-page { display: grid; grid-template-columns: clamp(220px, 24%, 320px) 1fr; min-height: 100vh; background: white; }
.onboarding-rail { position: relative; display: flex; flex-direction: column; padding: 34px 22px 0; background: var(--sidebar); color: white; overflow: hidden; }
.onboarding-steps { margin: 48px 0 0; padding: 0; list-style: none; }
.onboarding-steps li { display: flex; align-items: center; gap: 14px; min-height: 50px; margin-bottom: 8px; padding: 0 16px; border-radius: 8px; color: #dfe8f3; font-size: 15px; }
.onboarding-steps li span, .onboarding-next li span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 13px; font-weight: 600; }
.onboarding-steps li.current { background: var(--teal); color: white; font-weight: 600; }
.onboarding-steps li.current span { border-color: white; background: white; color: var(--teal-dark); }
.onboarding-steps li.done span { border-color: #6fd0d6; background: #6fd0d6; color: var(--sidebar); }
.onboarding-rail-art { position: relative; flex: 1; min-height: 300px; }
.onboarding-rail-art img { position: absolute; left: -26%; bottom: -10%; width: 150%; height: auto; }
.onboarding-rail-art .script { position: absolute; right: 4%; bottom: 360px; z-index: 1; color: white; font-size: 30px; text-align: center; }

.onboarding-main { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 26px 40px 30px; }
.onboarding-top { position: relative; display: flex; align-items: center; gap: 18px; min-height: 52px; padding-right: 110px; }
.onboarding-top .lang-select { top: 6px; right: 0; }
.onboarding-back, .onboarding-count { display: none; }
.onboarding-progress { flex: 1; max-width: 420px; }
.onboarding-progress span { display: block; color: var(--muted); font-size: 13px; }
.onboarding-progress .bar { height: 5px; margin-top: 10px; border-radius: 5px; background: #dde9ef; overflow: hidden; }
.onboarding-progress .bar i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .25s ease; }
.onboarding-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto; align-content: start; gap: 0 40px; margin-top: 26px; }
.onboarding-content { min-width: 0; max-width: 620px; }
.onboarding-step { margin: 0; padding: 0; border: 0; }
.onboarding-step legend { padding: 0; }
.onboarding-step h1 { font-size: 34px; font-weight: 650; letter-spacing: -1px; line-height: 1.2; }
.onboarding-step small { margin-top: 7px; }
.applicant-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.applicant-card { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px 46px 20px 20px; border: 1px solid #dbe4ec; border-radius: 9px; background: white; cursor: pointer; }
.applicant-card input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.applicant-card .ico.big { color: var(--navy); }
.applicant-card strong { display: block; font-size: 16px; font-weight: 600; }
.applicant-card small { margin-top: 4px; font-size: 13px; }
.applicant-card .tick { position: absolute; top: 18px; right: 16px; width: 22px; height: 22px; border: 1.5px solid #b9c6d3; border-radius: 50%; }
.applicant-card:has(input:checked) { border: 2px solid var(--teal); padding: 19px 45px 19px 19px; box-shadow: 0 6px 18px #008b9512; }
.applicant-card .tick .ico { display: none; width: 14px; height: 14px; margin: 2.5px; color: white; stroke-width: 3; }
.applicant-card:has(input:checked) .tick { border-color: var(--teal); background: var(--teal); }
.applicant-card:has(input:checked) .tick .ico { display: block; }
.applicant-card:has(input:focus-visible) { outline: 2px solid #00a3ad88; outline-offset: 2px; }
.onboarding-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; padding-right: 42px; cursor: pointer; }
.select-wrap>.chev { position: absolute; right: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); pointer-events: none; }
.select-wrap.flag select { padding-left: 50px; }
.select-wrap.pin select { padding-left: 46px; }
.select-wrap>.flag-ee, .select-wrap.pin>.ico:first-child { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.select-wrap>.flag-ee { width: 22px; height: 14px; }
.select-wrap.no-flag>.flag-ee { display: none; }
.select-wrap.no-flag select { padding-left: 15px; }
.chip-title { margin-top: 26px; font-size: 14px; font-weight: 600; }
.chip-title small { margin-top: 2px; font-weight: 400; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.interest-chips label { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 0 16px 0 14px; border: 1px solid #d5dee7; border-radius: 8px; background: white; font-size: 14px; font-weight: 500; cursor: pointer; }
.interest-chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.interest-chips .ico { width: 18px; height: 18px; color: var(--muted); }
.interest-chips label:has(input:checked) { border: 1.5px solid var(--teal); background: #eef9fa; color: var(--teal-dark); }
.interest-chips label:has(input:checked) .ico { color: white; background: var(--teal); border-radius: 50%; padding: 3px; stroke-width: 3; }
.interest-chips label:has(input:focus-visible) { outline: 2px solid #00a3ad88; outline-offset: 2px; }
.onboarding-review { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 26px 0 0; border: 1px solid #e3eaf1; border-radius: 10px; overflow: hidden; }
.onboarding-review dt, .onboarding-review dd { margin: 0; padding: 14px 18px; border-top: 1px solid #e9eff4; font-size: 14px; }
.onboarding-review dt { color: var(--muted); }
.onboarding-review dd { font-weight: 500; }
.onboarding-review dt:first-of-type, .onboarding-review dd:first-of-type { border-top: 0; }
.onboarding-review dd.missing { color: #9a5b00; font-weight: 400; }

.onboarding-next { align-self: start; padding: 24px 22px; border-radius: 12px; background: #f5f8fb; }
.onboarding-next h2 { font-size: 17px; font-weight: 650; }
.onboarding-next ol { margin: 18px 0 0; padding: 0; list-style: none; }
.onboarding-next li { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; margin-top: 18px; }
.onboarding-next li span { grid-row: span 2; color: var(--teal-dark); }
.onboarding-next li strong { font-size: 14px; font-weight: 600; }
.onboarding-next li small { font-size: 12px; margin-top: 2px; }
.onboarding-next li.current span { background: var(--teal); border-color: var(--teal); color: white; }
.onboarding-next li.done span { background: #e1f4f5; border-color: #9fdadf; }
.onboarding-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 22px; border-top: 1px solid #edf2f6; }
.onboarding-actions .button-outline { min-width: 120px; border: 1px solid #ccd7e1; background: white; color: var(--navy); box-shadow: none; }
#onboarding-submit { min-width: 230px; min-height: 52px; font-size: 15px; }

/* ---------- Phone ---------- */
@media (max-width: 800px) {
  .auth-page { padding: 0; }
  .auth-split { display: block; min-height: 100vh; border-radius: 0; box-shadow: none; }
  .auth-hero { padding: 26px 22px 0; }
  .auth-logo img { width: 150px; }
  .auth-hero-title { margin-top: 30px; font-size: 34px; letter-spacing: -.9px; }
  .auth-hero-lead { max-width: 230px; margin-top: 12px; font-size: 16px; line-height: 1.4; }
  .auth-hero-lead .desktop-copy { display: none; }
  .auth-hero-lead .phone-copy { display: inline; }
  .auth-features { display: none; }
  .auth-hero-art { min-height: 270px; margin: 0 -22px 0; }
  .auth-hero-art img { object-position: 40% bottom; }
  .auth-hero-art .script { display: none; }
  .auth-panel { display: block; margin-top: -18px; padding: 26px 22px 30px; border-radius: 18px 18px 0 0; background: white; }
  .auth-panel>.lang-select { position: static; display: flex; margin: 26px auto 0; order: 2; }
  .auth-panel { display: flex; flex-direction: column; }
  .auth-form h2, .auth-form .auth-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .auth-form label { margin-top: 0; }
  .auth-passkey { min-height: 52px; }
  .auth-passkey small { display: none; }
  .auth-new { margin-top: 22px; font-size: 13px; }
  .auth-terms { font-size: 12px; }
  .auth-company, .auth-trust { display: none; }
  .auth-company { grid-template-columns: 1fr; margin: 0; padding: 26px 22px 0; border-radius: 0; box-shadow: none; }
  .auth-company-copy>p { margin-left: 0; }
  .auth-company-cards { grid-template-columns: 1fr; }
  .auth-company-art { min-height: 240px; }
  .auth-trust { grid-template-columns: 1fr 1fr; gap: 14px 0; padding: 20px 10px 30px; background: white; }
  .auth-trust li:nth-child(3) { border-left: 0; }

  .onboarding-page { display: block; background: white; }
  .onboarding-rail { display: none; }
  .onboarding-main { min-height: 100vh; padding: 18px 22px 22px; }
  .onboarding-top { padding-right: 0; gap: 14px; }
  .onboarding-top .lang-select { display: none; }
  .onboarding-back { display: inline-flex; color: var(--navy); }
  .onboarding-back .ico { width: 22px; height: 22px; }
  .onboarding-progress span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .onboarding-progress .bar { margin-top: 0; }
  .onboarding-count { display: inline; color: var(--navy); font-size: 14px; font-weight: 600; }
  .onboarding-body { display: flex; flex-direction: column; margin-top: 30px; }
  .onboarding-step h1 { max-width: 265px; font-size: 31px; letter-spacing: -.8px; }
  .onboarding-step .auth-sub { font-size: 16px; }
  .applicant-cards { grid-template-columns: 1fr; gap: 14px; }
  .applicant-card { padding: 22px 46px 22px 20px; }
  .onboarding-row { grid-template-columns: 1fr; gap: 0; }
  .onboarding-next { display: none; }
  .onboarding-review { grid-template-columns: 1fr; }
  .onboarding-review dd { padding-top: 0; border-top: 0; }
  .onboarding-actions { margin-top: auto; padding-top: 26px; border-top: 0; }
  .onboarding-actions .button-outline { display: none; }
  #onboarding-submit { width: 100%; min-height: 54px; }
}

/* Overview prompt until onboarding is finished */
.onboarding-prompt { display: flex; align-items: center; gap: 18px; margin: 18px 0 0; padding: 12px 18px 12px 12px; border: 1px solid #cfeef0; border-radius: 10px; background: #f1fafb; color: var(--navy); }
.onboarding-prompt[hidden] { display: none; }
.onboarding-prompt:hover { text-decoration: none; border-color: var(--teal); }
.onboarding-prompt img { width: 58px; height: 58px; }
.onboarding-prompt>span:first-of-type { flex: 1; }
.onboarding-prompt strong { display: block; font-size: 15px; font-weight: 600; }
.onboarding-prompt .button { pointer-events: none; }
.onboarding-prompt .button .ico { width: 17px; height: 17px; }
@media (max-width: 800px) { .onboarding-prompt { flex-wrap: wrap; } .onboarding-prompt .button { width: 100%; } }
