/* CleverHive sign in, sign up, password pages and the guided setup (/welcome). Loaded after shared/css/base.css. */

/* ================================================================== Layout and components */
.auth { display: grid; place-items: center; padding: 24px 16px 56px; flex: 1; }
.auth-card { width: 100%; max-width: 460px; padding: 34px 34px 30px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-card .alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.auth-card .field + .field { margin-top: 18px; }
.agree { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--graphite); cursor: pointer; }
.agree > span { flex: 1; min-width: 0; }
.agree .err { flex-basis: 100%; margin: 0 0 0 27px; }
.agree.invalid input { outline: 2px solid rgba(180, 35, 24, .6); outline-offset: 2px; }
@media (max-width: 600px) {
  .auth-card { padding: 26px 20px 22px; }
}

/* ================================================================== Colours, borders and states */
.agree.invalid input { outline-color: var(--danger); }
.auth { background: var(--bg); }
.auth-card { box-shadow: var(--shadow-xs); }
/* ------------------------------------------------------------------ sign in / sign up / password pages (two panels) */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 46%) 1fr; background: var(--surface); }
.auth-side { background: var(--indigo); color: #fff; padding: 40px clamp(28px, 4vw, 56px); display: flex; }
.auth-side-inner { max-width: 480px; margin: auto; display: grid; gap: 22px; }
.auth-side .brand-name .c, .auth-side .brand-name .h { color: #fff; }
.auth-side .brand-sub { color: rgba(255, 255, 255, .7); }
.auth-side h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 18px 0 0; color: #fff; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .92); font-size: 15px; }
.auth-points svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: var(--brass-300); }
.auth-steps { list-style: none; counter-reset: s; padding: 18px 0 0; margin: 0; display: grid; gap: 14px; border-top: 1px solid rgba(255, 255, 255, .15); }
.auth-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.auth-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-weight: 700; font-size: 13px; }
.auth-steps b { color: #fff; font-size: 14.5px; }
.auth-steps span { color: rgba(255, 255, 255, .72); font-size: 13px; }
.auth-demo { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.auth-demo .bubble { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.auth-demo .bubble.agent { background: rgba(255, 255, 255, .14); border-bottom-left-radius: 4px; }
.auth-demo .bubble.caller { justify-self: end; background: #fff; color: var(--indigo); border-bottom-right-radius: 4px; }
.auth-demo-result { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.auth-langs { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; }
.auth-top-mobile { display: none; }
.auth-panel { width: 100%; max-width: 420px; margin: auto 0; }
.auth-panel h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-panel .sub { color: var(--muted); margin: 0 0 24px; }
.auth-panel .alert { margin-bottom: 18px; }
.auth-form { display: grid; gap: 18px; }
.auth-form .btn-block { margin-top: 4px; }
.auth-panel .alt { text-align: center; margin-top: 20px; color: var(--muted); font-size: 13.5px; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #3c4043; border: 1px solid var(--line); }
.btn-google:disabled { opacity: .75; cursor: not-allowed; }
.btn-google .soon { padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 22px; }
.auth-note svg { width: 14px; height: 14px; stroke: currentColor; }
.auth-foot { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 32px; font-size: 13px; }
.auth-foot a { color: var(--muted); }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-top-mobile { display: block; align-self: flex-start; margin-bottom: 28px; }
  .auth-main { justify-content: flex-start; padding: 20px 16px; }
  .auth-panel { margin: 0; }
}
/* ------------------------------------------------------------------ guided setup after sign-up (/welcome) */
.onb { min-height: 100vh; background: var(--surface-hi); }
.onb-top { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 4vw, 40px); background: var(--surface); border-bottom: 1px solid var(--line); }
.onb-main { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.onb-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.onb-steps li, .onb-steps a { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.onb-steps a:hover { text-decoration: none; color: var(--text); }
.onb-steps .dot { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); }
.onb-steps .dot svg { width: 14px; height: 14px; stroke: currentColor; }
.onb-steps .now .dot { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.onb-steps .now { color: var(--text); }
.onb-steps .done .dot { background: var(--ok-tint); border-color: var(--ok-tint); color: var(--ok); }
.onb-bar { height: 4px; border-radius: 4px; background: var(--border); margin: 14px 0 22px; overflow: hidden; }
.onb-bar i { display: block; height: 100%; background: var(--indigo); border-radius: 4px; }
.onb-bar i.s1 { width: 8%; }
.onb-bar i.s2 { width: 37%; }
.onb-bar i.s3 { width: 68%; }
.onb-bar i.s4 { width: 100%; }
.onb-card { padding: clamp(22px, 4vw, 36px); }
.onb-card h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; margin: 4px 0 8px; }
.onb-card .sub { color: var(--muted); margin: 0 0 22px; }
.onb-kicker { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.onb-items { display: grid; gap: 10px; }
.onb-items-head, .onb-item { display: grid; grid-template-columns: 1fr 170px; gap: 10px; }
.onb-items-head span { font-size: 12.5px; font-weight: 650; color: var(--graphite); }
.onb-jobs { display: grid; gap: 10px; }
.onb-jobs .radio-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.onb-jobs .radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.onb-jobs .radio-card .ico { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--subtle); color: var(--accent); }
.onb-jobs .radio-card .ico svg { width: 18px; height: 18px; stroke: currentColor; }
.onb-jobs .radio-card:has(input:focus-visible) { box-shadow: var(--ring); }
.onb-done { text-align: center; padding: 8px 0 4px; }
.onb-done .ico { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); }
.onb-done .ico svg { width: 28px; height: 28px; stroke: currentColor; }
.onb-done .sub { max-width: 520px; margin: 0 auto 22px; }
.onb-next-title { font-size: 16px; margin: 32px 0 12px; }
.onb-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onb-next-card { display: flex; gap: 12px; align-items: center; padding: 16px; color: inherit; }
.onb-next-card:hover { text-decoration: none; border-color: var(--border-strong); }
.onb-next-card .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--subtle); color: var(--accent); }
.onb-next-card .ico svg { width: 18px; height: 18px; stroke: currentColor; }
@media (max-width: 640px) {
  .onb-steps .t { display: none; }
  .onb-steps .now .t { display: inline; }
  .onb-steps { grid-template-columns: auto auto auto 1fr; }
  .onb-items-head, .onb-item { grid-template-columns: 1fr 110px; }
  .onb-next { grid-template-columns: 1fr; }
}

/* Terms and Privacy acceptance at sign-up */
.accept { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 10px; min-width: 0; }
.accept legend { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.accept p { margin: 0; }
.accept .agree a { text-decoration: underline; text-underline-offset: 3px; }
