/* ============================================================
   auth.css — sign-in/sign-up screens (v2)
   Scoped under .auth-v2. Overrides Bootstrap conventions
   loaded by the global layout.
   See design.md for token sources.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap");

html:has(.auth-v2),
body:has(.auth-v2) {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  background: #FFFFFF;
}

.auth-v2 {
  --brand: #C5F154;
  --ink: #0A0A0A;
  --cream: #F5F1E8;
  --text-muted: #6B7280;
  --text-soft: #4B5563;
  --border: #E5E7EB;
  --bg-subtle: #F3F4F6;

  background: #FFFFFF;
  color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.auth-v2 *,
.auth-v2 *::before,
.auth-v2 *::after { box-sizing: border-box; }

/* Header ----------------------------------------------------- */
.auth-v2__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: #FFFFFF;
}
.auth-v2__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.auth-v2__logo-img {
  display: block;
  height: 34px;
  width: auto;
}
.auth-v2__dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}
.auth-v2__status {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-family: "Roboto Mono", "Roboto", monospace;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Two-column body -------------------------------------------- */
.auth-v2__body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.auth-v2__column-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 96px;
  background: #FFFFFF;
  flex: 3 1 0;
  min-width: 0;
}
.auth-v2__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 420px;
}
/* Right column: five stripes, one per account type ---------- */
.auth-v2__column-stripes {
  display: flex;
  flex-direction: row;
  flex: 1 1 0;
  min-width: 360px;
  align-self: stretch;
  background: var(--cream);
}
.auth-v2__stripe {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 28px;
  background-color: var(--cream);
  border-left: 1px solid rgba(10, 10, 10, 0.06);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.auth-v2__stripe:first-child {
  border-left: 0;
}
.auth-v2__stripe::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hover-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.32s ease, transform 0.6s ease;
  z-index: 0;
}
/* Per-role focal points so the narrow strip catches the subject's face */
.auth-v2__stripe[href="/employerSignin"]::before { background-position: 32% center; }
.auth-v2__stripe[href="/academicExpertSignin"]::before { background-position: 22% center; }
.auth-v2__stripe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0) 35%, rgba(10,10,10,0.55) 100%);
  opacity: 0;
  transition: opacity 0.32s ease;
  z-index: 1;
}
.auth-v2__stripe:not(.auth-v2__stripe--active):hover::before { opacity: 1; transform: scale(1); }
.auth-v2__stripe:not(.auth-v2__stripe--active):hover::after { opacity: 1; }
.auth-v2__stripe:not(.auth-v2__stripe--active):hover .auth-v2__stripe-num,
.auth-v2__stripe:not(.auth-v2__stripe--active):hover .auth-v2__stripe-label {
  color: #FFFFFF;
}
.auth-v2__stripe-num {
  position: relative;
  z-index: 2;
  font-family: "Alfa Slab One", "Roboto", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 44px;
  letter-spacing: -0.02em;
  color: rgba(10, 10, 10, 0.28);
  transition: color 0.25s ease;
}
.auth-v2__stripe-label {
  position: relative;
  z-index: 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.55);
  transition: color 0.25s ease;
}
.auth-v2__stripe--active {
  background-color: var(--brand);
  cursor: default;
}
.auth-v2__stripe--active .auth-v2__stripe-num,
.auth-v2__stripe--active .auth-v2__stripe-label {
  color: var(--ink);
}
.auth-v2__stripe--active .auth-v2__stripe-label {
  font-weight: 700;
}
.auth-v2 .auth-v2__hero-img { display: none !important; }

/* Form column elements --------------------------------------- */
.auth-v2__eyebrow {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}
.auth-v2__highlight {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}
.auth-v2__highlight::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 8px;
  background: var(--brand);
  z-index: 0;
}
.auth-v2__highlight-text {
  position: relative;
  z-index: 1;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}

.auth-v2__hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-v2__title {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.auth-v2__subtitle {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0;
}

/* Form ------------------------------------------------------- */
.auth-v2__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.auth-v2__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-v2__label-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.auth-v2__label {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-soft);
}
.auth-v2__forgot {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-v2__forgot:hover { color: var(--ink); }

/* Reset Bootstrap form-control so it doesn't fight us */
.auth-v2 input.auth-v2__input,
.auth-v2 input[type="email"].auth-v2__input,
.auth-v2 input[type="password"].auth-v2__input,
.auth-v2 input[type="text"].auth-v2__input,
.auth-v2 textarea.auth-v2__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}
.auth-v2__input:focus { border-color: var(--ink); }
.auth-v2__input::placeholder { color: #9CA3AF; }

/* Actions ---------------------------------------------------- */
.auth-v2__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.auth-v2__btn-primary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--brand);
  border: 0;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.auth-v2__btn-primary:hover { filter: brightness(1.1); color: var(--brand); }
.auth-v2__btn-primary:active { transform: translateY(1px); }
.auth-v2__btn-primary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.auth-v2__btn-primary .arrow { font-weight: 400; }

.auth-v2__btn-google {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.auth-v2__btn-google:hover { background: var(--bg-subtle); color: var(--ink); text-decoration: none; }
.auth-v2__btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Footer link ----------------------------------------------- */
.auth-v2__footer {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  padding-top: 4px;
}
.auth-v2__footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-v2__footer a:hover { color: var(--ink); }

/* Terms & conditions checkbox ------------------------------- */
.auth-v2__terms {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.auth-v2__terms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.auth-v2__terms input[type="checkbox"]:hover {
  border-color: var(--ink);
}
.auth-v2__terms input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.auth-v2__terms input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-v2__terms input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.auth-v2__terms a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* OTP single-field block ------------------------------------ */
.auth-v2__otp-input {
  width: 100%;
  height: 56px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "Roboto Mono", "Roboto", monospace;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0.4em;
  text-align: center;
  color: var(--ink);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}
.auth-v2__otp-input:focus { border-color: var(--ink); }
.auth-v2__otp-input::placeholder {
  color: #C5C5C5;
  letter-spacing: 0.4em;
}
.auth-v2__otp-meta {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
  margin: 0;
}
.auth-v2__otp-meta strong {
  font-weight: 600;
  color: var(--ink);
}

/* Error message --------------------------------------------- */
.auth-v2__error {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
}

/* ============================================================
   Onboarding (formUpdated + addCompanyDetails)
   Scoped under .auth-v2--onboarding
   ============================================================ */

.auth-v2--onboarding .auth-v2__onboard-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 96px;
  width: 100%;
  flex: 1;
}
.auth-v2__onboard-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 720px;
}
.auth-v2__onboard-wrap--wide { max-width: 960px; }

/* Step indicator -------------------------------------------- */
.auth-v2__steps {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.auth-v2__steps-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.auth-v2__step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.auth-v2__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-disabled, #9CA3AF);
}
.auth-v2__step-label {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-disabled, #9CA3AF);
}
.auth-v2__step--active .auth-v2__step-num {
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
}
.auth-v2__step--active .auth-v2__step-label {
  color: var(--ink);
  font-weight: 600;
}
.auth-v2__step--done .auth-v2__step-num {
  background: var(--ink);
  color: var(--brand);
  font-weight: 700;
}
.auth-v2__step--done .auth-v2__step-label {
  color: var(--text-muted);
}
.auth-v2__step-line {
  width: 56px;
  height: 1px;
  background: var(--border);
}
.auth-v2__step--done + .auth-v2__step-line {
  background: var(--ink);
}
.auth-v2__step-count {
  font-family: "Roboto Mono", "Roboto", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #9CA3AF;
  text-transform: uppercase;
}

/* Hero on onboarding pages ---------------------------------- */
.auth-v2__onboard-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-v2__onboard-hero .auth-v2__title {
  font-size: 44px;
  line-height: 48px;
}

/* AI Assist banner ----------------------------------------- */
.auth-v2__ai-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.auth-v2__ai-banner::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(197,241,84,0.28) 0%, rgba(197,241,84,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-v2__ai-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: var(--ink);
  border-radius: 12px;
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
}
.auth-v2__ai-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  position: relative;
}
.auth-v2__ai-title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
}
.auth-v2__ai-sub {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: rgba(255,255,255,0.65);
}
.auth-v2__btn-ai {
  position: relative;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.auth-v2__btn-ai:hover { filter: brightness(1.05); color: var(--ink); }

/* Sectioned card -------------------------------------------- */
.auth-v2__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.auth-v2__card-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.auth-v2__card-num {
  font-family: "Roboto Mono", "Roboto", monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.auth-v2__card-line {
  height: 1px;
  flex: 1;
  background: var(--border);
}
.auth-v2__card-title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

/* Field row (multi-column) ---------------------------------- */
.auth-v2__field-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.auth-v2__field-row > .auth-v2__field { flex: 1; min-width: 0; }
.auth-v2__field-row > .auth-v2__field--wide { flex: 2; }
.auth-v2__label-optional {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: var(--text-disabled, #9CA3AF);
}

/* Select (matches input) ----------------------------------- */
.auth-v2 select.auth-v2__select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 12px 36px 12px 14px;
  background: #FFFFFF;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23374151' d='M5 6L0 0h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.15s ease;
}
.auth-v2__select:focus { border-color: var(--ink); }

/* Phone number with intl-tel-input ------------------------- */
.auth-v2 .iti {
  width: 100%;
  display: block;
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 48px;
  transition: border-color 0.15s ease;
}
.auth-v2 .iti:focus-within { border-color: var(--ink); }

/* Inner input is borderless — the .iti wrapper supplies the chrome.
   !important on padding-left: intl-tel-input writes an inline padding-left
   based on flag-container width; we override so the number sits comfortably
   away from the prefix divider. */
.auth-v2 .iti input.auth-v2__input,
.auth-v2 .iti input[type="text"].auth-v2__input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding-left: 100px !important;
  padding-right: 14px;
}
.auth-v2 .iti input.auth-v2__input:focus { border: 0; }

/* Reposition the flag prefix as an inline trigger inside .iti */
.auth-v2 .iti__flag-container {
  position: static;
  padding: 0;
}
.auth-v2 .iti__selected-flag {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  background: transparent;
  border-right: 1px solid var(--border);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  outline: none;
  cursor: pointer;
  z-index: 2;
}
.auth-v2 .iti__selected-flag:hover,
.auth-v2 .iti__selected-flag[aria-expanded="true"] {
  background: var(--bg-subtle);
}

/* Swap the default triangle for our chevron-down */
.auth-v2 .iti__arrow {
  width: 10px;
  height: 6px;
  margin-left: 2px;
  border: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23374151' d='M5 6L0 0h10z'/></svg>") no-repeat center / 10px 6px;
  transition: transform 0.15s ease;
}
.auth-v2 .iti__arrow.iti__arrow--up {
  border: 0;
  transform: rotate(180deg);
}

/* Country-list popover — span the full input width */
.auth-v2 .iti .iti__country-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.10);
  list-style: none;
  white-space: normal;
  z-index: 50;
}
.auth-v2 .iti__country {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  cursor: pointer;
}
.auth-v2 .iti__country-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-v2 .iti__country .iti__dial-code {
  flex-shrink: 0;
  color: var(--text-muted);
  font-family: "Roboto Mono", "Roboto", monospace;
  font-size: 13px;
}
.auth-v2 .iti__country:hover,
.auth-v2 .iti__country.iti__highlight,
.auth-v2 .iti__country.iti__active {
  background: var(--bg-subtle);
}
.auth-v2 .iti__divider {
  margin: 6px 4px;
  padding: 0;
  border-top: 1px solid var(--border);
}

/* Autocomplete suggestions (job_role) ---------------------- */
.auth-v2__autocomplete {
  position: relative;
  z-index: 5;
}
.auth-v2 .autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(10,10,10,0.08);
  display: none;
  z-index: 100;
}
.auth-v2 .autocomplete-suggestion {
  padding: 10px 14px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.auth-v2 .autocomplete-suggestion:hover { background: var(--bg-subtle); }

/* Radio group ---------------------------------------------- */
.auth-v2__radio-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.auth-v2__radio {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex: 1;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.auth-v2__radio:hover { border-color: var(--ink); }
.auth-v2__radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background: #FFFFFF;
}
.auth-v2__radio input[type="radio"]:checked {
  border: 5px solid var(--ink);
}
.auth-v2__radio:has(input[type="radio"]:checked) {
  border-color: var(--ink);
  background: #FAFAF8;
}

/* Outline / secondary buttons ------------------------------ */
.auth-v2__btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.auth-v2__btn-outline:hover { background: var(--bg-subtle); color: var(--ink); text-decoration: none; }

/* Brand-fill button (lime, dark text) — section-commit CTA */
.auth-v2__btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  background: var(--brand);
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.auth-v2__btn-brand:hover { filter: brightness(0.96); color: var(--ink); text-decoration: none; }
.auth-v2__btn-brand:active { transform: translateY(1px); }
.auth-v2__btn-brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.auth-v2__btn-brand .arrow { font-weight: 400; }

/* Card-scoped action row (right-aligned mid-form CTAs) */
.auth-v2__card-action {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

/* Form footer (back link + primary CTA) -------------------- */
.auth-v2__form-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}
/* In the footer the primary CTA sizes to content (sign-in pages keep full-width) */
.auth-v2__form-footer .auth-v2__btn-primary {
  width: auto;
  flex-shrink: 0;
  padding: 14px 24px;
}
.auth-v2__back-link {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.auth-v2__back-link:hover { color: var(--ink); }

/* Tag chips input (top_projects, highlight_points) --------- */
.auth-v2__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  min-height: 48px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.auth-v2__tag {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border-radius: 9999px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--ink);
}
.auth-v2__tag-remove {
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
}
/* When the page already loads bootstrap-tagsinput, smooth it over */
.auth-v2 .bootstrap-tagsinput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}
.auth-v2 .bootstrap-tagsinput input {
  border: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  width: auto;
  margin: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}
.auth-v2 .bootstrap-tagsinput .tag {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 10px;
  background: #F0EBDC;
  color: var(--ink);
  border: 0;
  border-radius: 9999px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
}
.auth-v2 .bootstrap-tagsinput .tag [data-role="remove"] {
  cursor: pointer;
  margin-left: 2px;
}
.auth-v2 .bootstrap-tagsinput .tag [data-role="remove"]::after {
  content: "×";
  padding: 0;
  color: var(--text-muted);
  font-family: "Roboto", sans-serif;
}

/* Textarea ------------------------------------------------- */
.auth-v2 textarea.auth-v2__input {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 22px;
  resize: vertical;
}

/* Website prefix combo ------------------------------------- */
.auth-v2__website-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 48px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.auth-v2__website-prefix {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-subtle);
  font-family: "Roboto Mono", "Roboto", monospace;
  font-size: 14px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.auth-v2__website-input input {
  flex: 1;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: none;
  background: transparent;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  color: var(--ink);
}

/* Logo upload row ------------------------------------------ */
.auth-v2__logo-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.auth-v2__logo-well {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--bg-subtle);
  border: 1px dashed #D1D5DB;
  border-radius: 12px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  overflow: hidden;
}
.auth-v2__logo-well img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-v2__logo-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.auth-v2__logo-name {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.auth-v2__logo-hint {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-v2__logo-input { display: none; }

/* Error modal --------------------------------------------- */
.auth-v2__modal {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.auth-v2__modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 48px rgba(10,10,10,0.24);
  position: relative;
}
.auth-v2__modal-content h5 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}
.auth-v2__modal-content p {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.auth-v2__modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: "Roboto", sans-serif;
  line-height: 1;
}

/* Responsive: collapse to single column under ~900px ---------- */
@media (max-width: 900px) {
  .auth-v2__field-row { flex-direction: column; }
  .auth-v2__card { padding: 24px; }
  .auth-v2__ai-banner { flex-direction: column; align-items: flex-start; }
  .auth-v2__steps { flex-direction: column; align-items: flex-start; gap: 12px; }
  .auth-v2__body { flex-direction: column; }
  .auth-v2__column-image { display: none; }
  .auth-v2__column-form { padding: 32px 24px 64px; min-width: 0; }
  .auth-v2__title { font-size: 40px; line-height: 44px; }
}
