/* Shared login and registration presentation. Scoped to these two entry pages. */
.auth-page {
  --auth-ink: #24222a;
  --auth-muted: #696571;
  --auth-line: #e3e0e8;
  --auth-accent: #7c3aed;
  --violet: var(--auth-accent);
  --violet2: #6d28d9;
  --violet-dim: #f5f0ff;
  --violet-border: #d8c8f7;
  --purple: var(--auth-accent);
  --text: var(--auth-ink);
  --ink: var(--auth-ink);
  --text-dim: var(--auth-muted);
  --text-muted: var(--auth-muted);
  --muted: var(--auth-muted);
  --line: var(--auth-line);
  --border2: var(--auth-line);
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  background: #fdfcfe;
  color: var(--auth-ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.auth-page::before { content: none; }
.auth-page .auth, .auth-page .layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: 100dvh;
  height: auto;
  background: #f5f3f8;
}
.auth-page .panel, .auth-page .left-panel {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100dvh;
  padding: clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f5f3f8;
  border: 0;
  color: var(--auth-ink);
  overflow: visible;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--auth-ink);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.7px;
}
.auth-brand img { width: 36px; height: 36px; border-radius: 10px; }
.auth-brand a { color: inherit; text-decoration: none; }
.auth-page .panel-mid, .auth-page .auth-story { margin: auto 0; padding: 64px 0; max-width: 480px; }
.auth-page .panel h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.16; letter-spacing: -1.8px; font-weight: 650; margin: 0 0 22px; }
.auth-page .panel p.sub { color: var(--auth-muted); font-size: 16px; line-height: 1.8; max-width: 370px; margin: 0; }
.auth-page .panel-foot { color: var(--auth-muted); font-size: 12px; letter-spacing: .02em; }
.auth-page .form-side, .auth-page .right-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 64px clamp(24px, 5vw, 88px);
  overflow: visible;
  min-width: 0;
  background: #fdfcfe;
}
.auth-page .form-box, .auth-page .registration-box { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-page .form-box h1 { font-size: 30px; font-weight: 650; letter-spacing: -1px; margin: 0 0 10px; }
.auth-page .auth-title { font-size: 30px; font-weight: 650; letter-spacing: -1px; margin: 0 0 10px; }
.auth-page .auth-description { font-size: 15px; color: var(--auth-muted); line-height: 1.7; }
.auth-page .desc { color: var(--auth-muted); line-height: 1.7; margin: 0 0 30px; }
.auth-page #bv-locale-selector-mount select { min-height: 40px; }
.auth-mobile-brand { display: none; }
.auth-page .field { margin-bottom: 20px; }
.auth-page .field label, .auth-page .label { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--auth-ink); margin-bottom: 8px; }
.auth-page .field input, .auth-page .input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--auth-line);
  border-radius: 9px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  font-size: 16px;
  box-shadow: 0 1px 2px #24222a04;
}
.auth-page input::placeholder { color: #807a89; opacity: 1; }
.auth-page .input:focus, .auth-page .field input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px #7c3aed14; outline: none; }
.auth-page :is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 4px; }
.auth-page .sbtn, .auth-page .reg-sso-btn {
  min-height: 50px;
  border-radius: 9px;
  border: 1px solid var(--auth-line);
  background: #fff;
  color: var(--auth-ink);
  font-size: 14px;
  box-shadow: none;
}
.auth-page .sbtn.apple, .auth-page .reg-sso-btn.apple { background: #262329; color: #fff; border-color: #262329; }
.auth-page .sbtn:hover, .auth-page .reg-sso-btn:hover { border-color: var(--auth-accent); box-shadow: none; }
.auth-page #submit-btn, .auth-page .btn-primary {
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 9px;
  border: 1px solid var(--auth-accent);
  background: var(--auth-accent);
  color: #fff;
  box-shadow: none;
  font-size: 15px;
  font-weight: 650;
  transition: background-color .15s;
}
.auth-page #submit-btn:hover, .auth-page .btn-primary:hover { background: #6d28d9; transform: none; opacity: 1; }
.auth-page :is(#submit-btn, .btn-primary):disabled { opacity: .55; cursor: wait; }
.auth-page .switch { border-top: 1px solid var(--auth-line); padding-top: 24px; margin-top: 28px; font-size: 13px; }
.auth-page .auth-footer { display: flex; justify-content: center; gap: 24px; margin-top: 28px; font-size: 12px; }
.auth-page .auth-footer a { color: var(--auth-muted); text-decoration: underline; text-underline-offset: 3px; }
.auth-page .err { color: #b42318; }
.auth-page .reg-type { gap: 8px; }
.auth-page .reg-type label { padding: 12px 14px; border-radius: 9px; font-size: 13px; }
.auth-page .reg-type input { flex-shrink: 0; }
.auth-page .reg-hint { font-size: 12px; line-height: 1.6; }
.auth-page .reg-chips button { min-height: 44px; border-radius: 8px; }
.auth-page .reg-extras { border: 1px solid var(--auth-line); border-radius: 10px; background: #fff; }
.auth-page .reg-extras summary { padding: 16px; cursor: pointer; font-size: 13px; font-weight: 600; }
.auth-page .reg-extras summary span + span { color: var(--auth-muted); font-weight: 400; }
.auth-page .reg-extras-content { display: grid; gap: 20px; padding: 4px 16px 20px; }
.auth-page .reg-contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-page .feature-chip { background: transparent; border: 0; padding: 0; margin-right: 12px; color: var(--auth-muted); }
.auth-page .feature-number { font-size: 12px; font-weight: 600; color: var(--auth-accent); }
@media (max-width: 899px) {
  .auth-page .auth, .auth-page .layout { grid-template-columns: minmax(0, 1fr); background: #fdfcfe; }
  .auth-page .panel { display: none; }
  .auth-page .left-panel { position: static; min-height: auto; padding: 24px; background: transparent; }
  .auth-page .auth-story { display: none; }
  .auth-page .form-side { padding: 32px 24px 48px; }
  .auth-page .right-panel { padding: 16px 24px 48px; }
  .auth-page .auth-mobile-brand { display: flex; margin-bottom: 48px; }
  .auth-page .form-box { margin: auto; }
  .auth-page .left-panel > .auth-brand { width: 100%; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 380px) {
  .auth-page .form-side, .auth-page .right-panel, .auth-page .left-panel { padding-left: 20px; padding-right: 20px; }
  .auth-page .reg-contact-row { grid-template-columns: minmax(0, 1fr); }
  .auth-page .field .hint { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; animation: none !important; }
}
/* Language picker on the login card (the register page mounts its own in the header). */
.auth-page .auth-lang { display: flex; justify-content: flex-end; margin: 0 0 18px; }
.auth-page .auth-lang select { min-height: 32px; border: 1px solid var(--auth-line) !important; border-radius: 9px !important; padding: 4px 10px !important; font: 600 12.5px/1 'Plus Jakarta Sans', system-ui, sans-serif !important; color: var(--auth-ink) !important; background: #fff !important; }
.auth-page .auth-lang select:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 2px; }
@media (max-width: 899px) {
  /* Picker sits on the brand row instead of taking a line of its own. */
  .auth-page .form-box { position: relative; }
  .auth-page .auth-lang { position: absolute; top: 2px; right: 0; margin: 0; }
}
