/* Belter — Auth pages shared styles */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

/* ---- Form side ---- */
.auth__form-side {
  display: flex; flex-direction: column;
  padding: 32px 48px;
}
.auth__form-side .top {
  display: flex; align-items: center; justify-content: space-between;
}
.auth__form-side .top a.back {
  font-size: 13px; color: var(--text-grey-mid); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.auth__form-side .top a.back:hover { color: var(--text-black); }

.auth__form-wrap {
  margin: auto; width: 100%; max-width: 460px; padding: 24px 0 48px;
}
.auth__form-wrap h1 {
  font-size: 32px; font-weight: 500; letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.auth__form-wrap .lede {
  color: var(--text-grey-mid); font-size: 15px; margin: 0 0 28px;
}
.auth__form-wrap .lede strong { color: var(--text-black); font-weight: 500; }
.auth__form-wrap .form { gap: 16px; }
.auth__form-wrap .field input { padding: 13px 14px; font-size: 14px; border-radius: 8px; }
.auth__form-wrap .btn { justify-content: center; padding: 14px 18px; font-size: 15px; }
.auth__form-wrap .btn--block { width: 100%; }

.row-between {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; margin: -4px 0 4px;
}
.forgot { color: var(--text-grey-dark); text-decoration: none; font-weight: 500; }
.forgot:hover { color: var(--text-black); text-decoration: underline; }

/* Checkboxes */
.check {
  display: inline-flex; align-items: flex-start; gap: 10px;
  color: var(--text-grey-dark); cursor: pointer; user-select: none;
  font-size: 13px; line-height: 1.5;
}
.check input {
  appearance: none; width: 16px; height: 16px;
  margin-top: 2px; flex-shrink: 0;
  border: 1px solid var(--border-default); border-radius: 4px;
  display: inline-grid; place-content: center; cursor: pointer;
}
.check input:checked { background: var(--brand-green); border-color: var(--brand-green); }
.check input:checked::after {
  content: ""; width: 8px; height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'><path d='M2 5l2 2 4-4' stroke='%230A1616' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.check a { color: var(--text-black); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-default); }
.check a:hover { text-decoration-color: var(--text-black); }

/* Divider */
.or-sep {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 14px; color: var(--text-grey-light); font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  margin: 24px 0;
}
.or-sep::before, .or-sep::after { content: ""; height: 1px; background: var(--border-subtle); }

/* SSO buttons */
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sso-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-default); border-radius: 8px;
  background: #fff; color: var(--text-black);
  font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background 120ms var(--ease-out);
}
.sso-stack .sso-btn { padding: 12px 16px; }
.sso-stack .sso-btn + .sso-btn { margin-top: 10px; }
.sso-btn:hover { background: var(--bg-page-muted); }

/* Password strength */
.pw-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-strength span { height: 4px; border-radius: 999px; background: var(--ui-200); transition: background 180ms var(--ease-out); }
.pw-strength.is-1 span:nth-child(-n+1) { background: var(--error); }
.pw-strength.is-2 span:nth-child(-n+2) { background: var(--warning); }
.pw-strength.is-3 span:nth-child(-n+3) { background: var(--accent-teal); }
.pw-strength.is-4 span { background: var(--brand-green); }
.pw-hint { font-size: 12px; color: var(--text-grey-mid); margin-top: 6px; }

/* Footer + legal */
.auth__foot { margin-top: 28px; font-size: 14px; color: var(--text-grey-mid); text-align: center; }
.auth__foot a { color: var(--text-black); font-weight: 500; text-decoration: none; }
.auth__foot a:hover { text-decoration: underline; }
.auth__legal {
  margin-top: auto; font-size: 12px; color: var(--text-grey-light);
  display: flex; justify-content: space-between; gap: 16px;
}
.auth__legal a { color: inherit; text-decoration: none; }
.auth__legal a:hover { color: var(--text-grey-mid); }

/* ---- Brand side ---- */
.auth__brand-side {
  position: relative;
  background: var(--ui-green-dark);
  color: var(--text-on-dark);
  padding: 48px 56px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.auth__brand-side::before {
  content: "";
  position: absolute; inset: -20% -10% 30% 30%;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(70,253,174,0.55), transparent 70%),
    radial-gradient(closest-side at 70% 70%, rgba(198,251,75,0.45), transparent 70%);
  filter: blur(40px);
  z-index: 0; pointer-events: none;
}
.auth__brand-side > * { position: relative; z-index: 1; }
.auth__brand-side .belter-mark .word,
.auth__brand-side .belter-mark .tld { color: var(--text-on-dark); }
.auth__brand-side .belter-mark .tld { color: rgba(255,255,255,0.5); }

.brand-lede { margin-top: auto; padding-top: 48px; max-width: 480px; }
.brand-lede .eyebrow { color: var(--brand-lime); margin-bottom: 16px; display: block; }
.brand-lede h2 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; color: var(--text-on-dark); margin: 0 0 18px; }
.brand-lede p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.7); margin: 0 0 28px; }

.freebies { display: flex; flex-direction: column; gap: 12px; padding: 0; }
.freebies li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.5; list-style: none; }
.freebies li svg { flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; background: var(--brand-gradient); color: var(--text-black); border-radius: 6px; padding: 3px; }
.freebies li strong { color: var(--text-on-dark); font-weight: 500; }

.brand-card {
  margin-top: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.brand-card .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.brand-card .num { font-size: 38px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-on-dark); margin-top: 4px; line-height: 1; }
.brand-card .num small { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 400; margin-left: 4px; }
.brand-card .sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.brand-card .badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--brand-gradient); color: var(--text-black); border-radius: 14px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

.brand-foot {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px;
}

/* ---- Reusable bits ---- */

/* Big icon block (success / mail) */
.auth-icon {
  width: 64px; height: 64px;
  background: var(--brand-gradient);
  color: var(--text-black);
  border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.auth-icon--ink {
  background: var(--text-black); color: var(--brand-lime);
}

/* Pill showing what we just sent / to whom */
.sent-to {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-page-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 14px; color: var(--text-black);
  margin: 0 0 24px;
  font-family: var(--font-mono);
}
.sent-to svg { color: var(--text-grey-mid); }

/* OTP input row */
.otp-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin: 4px 0 6px;
}
.otp-row input {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-black);
  padding: 14px 0;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.otp-row input:focus { border-color: var(--brand-green); box-shadow: var(--ring-focus); }
.otp-row input:not(:placeholder-shown) { border-color: var(--text-black); background: var(--bg-page-muted); }
.otp-row.has-sep { grid-template-columns: repeat(3, 1fr) auto repeat(3, 1fr); align-items: center; }
.otp-row .sep { width: 8px; height: 2px; background: var(--border-default); border-radius: 999px; }

/* Resend / countdown */
.resend { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-grey-mid); }
.resend button, .resend a {
  background: none; border: 0; padding: 0;
  color: var(--text-black); font-weight: 500; cursor: pointer;
  font: inherit; text-decoration: underline; text-decoration-color: var(--border-default); text-underline-offset: 3px;
}
.resend button:hover, .resend a:hover { text-decoration-color: var(--text-black); }
.resend button:disabled { color: var(--text-grey-light); cursor: not-allowed; text-decoration: none; }
.resend .count { font-family: var(--font-mono); color: var(--text-grey-mid); }

/* Backup-code list */
.backup-codes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px;
  padding: 16px;
  background: var(--bg-page-muted);
  border: 1px dashed var(--border-default);
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-grey-dark);
  margin: 20px 0;
}
.backup-codes code { background: none; padding: 0; }

/* "Trust this device" toggle row */
.trust-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-page-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 13px; color: var(--text-grey-dark);
  margin-top: 4px;
}
.trust-row .check { flex: 1; }

/* Help links list */
.help-list {
  display: flex; flex-direction: column; gap: 0; padding: 0; margin: 24px 0 0;
  border-top: 1px solid var(--border-subtle);
}
.help-list li { list-style: none; }
.help-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-black); text-decoration: none;
  font-size: 14px;
}
.help-list a:hover { color: var(--text-grey-dark); }
.help-list a .arrow { margin-left: auto; color: var(--text-grey-light); transition: transform 120ms var(--ease-out); }
.help-list a:hover .arrow { transform: translateX(2px); color: var(--text-black); }
.help-list a .label { display: flex; flex-direction: column; gap: 2px; }
.help-list a .label small { color: var(--text-grey-mid); font-size: 12px; font-weight: 400; }

/* Responsive */
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; min-height: auto; }
  .auth__form-side { padding: 24px; min-height: 100vh; }
  .auth__brand-side { display: none; }
}
