/* Auth page — signup/login OTP flows — B&W */

.auth-page .home-card { overflow: hidden; }

.auth-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.auth-steps li {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--h-muted, #6b6b6b);
  position: relative;
  transition: color .2s ease;
}
.auth-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--h-bg-2, #fafafa);
  margin: 0 auto 8px;
  font-size: 12.5px;
  font-weight: 700;
  border: 2px solid var(--h-line, #e0e0e0);
  transition: all .25s ease;
}
.auth-steps li.on { color: var(--h-ink, #0a0a0a); }
.auth-steps li.on span {
  background: var(--h-ink, #0a0a0a);
  border-color: var(--h-ink, #0a0a0a);
  color: #ffffff;
  transform: scale(1.05);
}
.auth-steps li.done { color: var(--h-muted, #6b6b6b); }
.auth-steps li.done span {
  background: var(--h-bg-2, #fafafa);
  border-color: var(--h-ink, #0a0a0a);
  color: var(--h-ink, #0a0a0a);
}
.auth-steps li + li::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 15px;
  width: 100%;
  height: 2px;
  background: var(--h-line, #e0e0e0);
  z-index: -1;
  transition: background .25s ease;
}
.auth-steps li.done + li::before,
.auth-steps li.on::before { background: var(--h-ink, #0a0a0a); }

.otp-box {
  background: var(--h-bg-2, #fafafa);
  border: 1px solid var(--h-line, #e0e0e0);
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 18px;
}
.otp-box .otp-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--h-muted, #6b6b6b);
  margin-bottom: 9px;
}
.otp-box p { margin: 0; line-height: 1.6; font-size: 14px; }

.otp-input {
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: .42em !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums;
  padding: 16px 14px !important;
  border-color: var(--h-line, #e0e0e0) !important;
  border-width: 2px !important;
  border-radius: 14px !important;
  min-height: 70px !important;
  transition: all .2s ease !important;
}
.otp-input:hover {
  border-color: var(--h-line-strong, #cccccc) !important;
}
.otp-input:focus {
  border-color: var(--h-ink, #0a0a0a) !important;
  box-shadow: 0 0 0 4px rgba(10, 10, 10, .08) !important;
  transform: scale(1.01);
}

.otp-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}
.link-btn {
  background: none;
  border: none;
  padding: 8px 4px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--h-ink, #0a0a0a);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all .15s ease;
  text-decoration-thickness: 1.5px;
}
.link-btn:hover {
  color: var(--h-accent-hover, #333333);
  text-decoration-thickness: 2px;
}
.link-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  text-decoration: none;
}

.forgot-line {
  margin: 14px 0 0;
  text-align: center;
}

.home-err.ok {
  background: var(--h-bg-2, #fafafa);
  border-color: var(--h-line, #e0e0e0);
  color: var(--h-ink, #0a0a0a);
  border-width: 1.5px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--h-muted, #6b6b6b);
  background: var(--h-bg-2, #fafafa);
  border: 1px solid var(--h-line, #e0e0e0);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}
.auth-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h-ink, #0a0a0a);
}

#emailVerifyGate + #signupForm[hidden],
#loginOtpGate[hidden] { display: none !important; }

.signin-email-form[hidden] { display: none !important; }

/* Show / hide password — B&W, flush with existing input chrome */
.pass-field {
  position: relative;
  display: block;
}
.pass-field input {
  width: 100%;
  padding-right: 4.6rem !important;
}
.pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--h-line, #e0e0e0);
  border-radius: 8px;
  background: var(--h-bg-2, #fafafa);
  color: var(--h-ink, #0a0a0a);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pass-toggle:hover {
  background: #fff;
  border-color: var(--h-line-strong, #cccccc);
}
.pass-toggle[aria-pressed="true"] {
  background: var(--h-ink, #0a0a0a);
  border-color: var(--h-ink, #0a0a0a);
  color: #fff;
}
.pass-match {
  margin: -6px 0 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 1.2em;
  transition: color .15s ease, opacity .15s ease;
}
.pass-match.ok { color: var(--h-ink, #0a0a0a); }
.pass-match.bad { color: #b91c1c; }
.pass-field input[aria-invalid="true"] {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, .25);
}

/* Signup terms acceptance — required checkbox, no card chrome */
.terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--h-muted, #5c5c5c);
  font-weight: 500;
  cursor: pointer;
}
.terms-agree input {
  margin: 2px 0 0;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--h-ink, #0a0a0a);
}
.terms-agree a {
  color: var(--h-ink, #0a0a0a);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-agree a:hover { opacity: .8; }

