/* Auth OTP — production UI */
.auth-otp-body .site-footer { display: none; }
.otp-shell {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.otp-shell::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background:
    radial-gradient(ellipse 60% 80% at 20% 40%, color-mix(in srgb, var(--bronze) 28%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 70% at 90% 20%, color-mix(in srgb, #7eb8e8 18%, transparent), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.otp-stage {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-solid, var(--surface, #12151c));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .22),
    0 0 0 1px color-mix(in srgb, var(--bronze) 8%, transparent);
  animation: otpIn .55s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes otpIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.otp-brand {
  position: relative;
  padding: 2.4rem 2rem;
  color: #eef5fc;
  background:
    linear-gradient(155deg, #1a3a5c 0%, #245a8c 42%, #3b7fc4 100%);
  min-height: 100%;
  display: flex;
  align-items: flex-end;
}
.otp-brand-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
  pointer-events: none;
}
.otp-brand-inner { position: relative; z-index: 1; max-width: 22rem; }
.otp-brand-mark {
  margin: 0 0 .85rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  opacity: .75;
}
.otp-brand-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.otp-brand-copy {
  margin: 1rem 0 1.25rem;
  line-height: 1.75;
  font-size: .95rem;
  opacity: .88;
}
.otp-brand-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}
.otp-brand-points li {
  position: relative;
  padding-right: 1.15rem;
  font-size: .88rem;
  opacity: .9;
}
.otp-brand-points li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .45rem;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.2);
}

.otp-card {
  padding: 2rem 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.otp-card-head { margin-bottom: .35rem; }
.otp-eyebrow {
  margin: 0;
  color: var(--bronze);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.otp-card h1 {
  margin: .4rem 0 .45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
}
.otp-lead {
  margin: 0 0 .65rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: .92rem;
}
.otp-trust {
  margin: 0 0 1.25rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.55;
  font-weight: 650;
  color: var(--bronze-deep, var(--bronze));
  background: color-mix(in srgb, var(--bronze) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bronze) 28%, var(--line));
}

.otp-progress {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.25rem;
}
.otp-progress-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.otp-progress-item.is-active,
.otp-progress-item.is-done { color: var(--ink); }
.otp-progress-num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .78rem;
  border: 1px solid var(--line);
  background: transparent;
  transition: .25s ease;
}
.otp-progress-item.is-active .otp-progress-num {
  background: var(--bronze);
  border-color: var(--bronze);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--bronze) 35%, transparent);
}
.otp-progress-item.is-done .otp-progress-num {
  background: color-mix(in srgb, var(--bronze) 18%, transparent);
  border-color: color-mix(in srgb, var(--bronze) 45%, var(--line));
  color: var(--bronze);
}
.otp-progress-line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  min-width: 1.5rem;
}

.otp-alert {
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.55;
  animation: otpAlert .3s ease both;
}
@keyframes otpAlert {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.otp-alert.is-error {
  background: color-mix(in srgb, #c45c5c 12%, transparent);
  color: #c45c5c;
  border: 1px solid color-mix(in srgb, #c45c5c 30%, transparent);
}
.otp-alert.is-ok {
  background: color-mix(in srgb, var(--bronze) 12%, transparent);
  color: var(--bronze-deep, var(--bronze));
  border: 1px solid color-mix(in srgb, var(--bronze) 32%, transparent);
}

.otp-form[hidden] { display: none !important; }
.otp-form:not([hidden]) { animation: otpPanel .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes otpPanel {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

.otp-field { margin-bottom: 1rem; }
.otp-field label {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
  font-size: .86rem;
  color: var(--muted);
  font-weight: 600;
}
.otp-opt {
  font-size: .72rem;
  font-weight: 500;
  opacity: .7;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .05rem .4rem;
}
.otp-input {
  width: 100%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid, #fff) 88%, transparent);
  color: var(--ink);
  border-radius: 12px;
  padding: .85rem 1rem;
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.otp-input:focus {
  border-color: color-mix(in srgb, var(--bronze) 65%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bronze) 16%, transparent);
}
.otp-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  background: color-mix(in srgb, var(--surface-solid, #fff) 88%, transparent);
}
.otp-phone-wrap:focus-within {
  border-color: color-mix(in srgb, var(--bronze) 65%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bronze) 16%, transparent);
}
.otp-phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 .9rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
  direction: ltr;
  background: color-mix(in srgb, var(--bronze) 6%, transparent);
}
.otp-phone-input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  direction: ltr;
  text-align: left;
  letter-spacing: .06em;
  font-size: 1.12rem;
  font-weight: 650;
}
.otp-hint {
  margin: .4rem 0 0;
  font-size: .75rem;
  color: var(--muted);
}
.otp-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.otp-sent-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bronze) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bronze) 22%, var(--line));
}
.otp-sent { margin: 0; font-size: .9rem; line-height: 1.5; }
.otp-linkish {
  border: 0;
  background: transparent;
  color: var(--bronze);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  padding: .2rem .35rem;
}
.otp-linkish:hover { text-decoration: underline; }

.otp-digits {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .45rem;
  direction: ltr;
}
.otp-digit {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  max-height: 3.4rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid, #fff) 88%, transparent);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.otp-digit:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bronze) 16%, transparent);
  transform: translateY(-1px);
}
.otp-digit.is-filled {
  border-color: color-mix(in srgb, var(--bronze) 50%, var(--line));
  background: color-mix(in srgb, var(--bronze) 7%, transparent);
}

.otp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: .95rem 1.1rem;
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s, filter .2s, opacity .2s, box-shadow .2s;
}
.otp-btn:disabled { opacity: .55; cursor: not-allowed; }
.otp-btn-primary {
  margin-top: .35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--bronze), var(--bronze-deep, #3d7fb8));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--bronze) 32%, transparent);
}
.otp-btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.otp-btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.otp-btn-ghost:hover:not(:disabled) {
  border-color: var(--bronze);
  color: var(--bronze);
}
.otp-btn.is-loading .otp-btn-text { opacity: .35; }
.otp-btn-spinner {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: otpSpin .7s linear infinite;
}
.otp-btn.is-loading .otp-btn-spinner { display: inline-block; }
@keyframes otpSpin { to { transform: rotate(360deg); } }

.otp-resend-row { margin-top: .75rem; }
.otp-timer {
  margin: .65rem 0 0;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  min-height: 1.2em;
}
.otp-fineprint {
  margin: .85rem 0 0;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.otp-foot {
  margin-top: auto;
  padding-top: 1.35rem;
  text-align: center;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.7;
}
.otp-foot a { color: var(--bronze); font-weight: 700; }
.otp-foot-secondary {
  display: inline-block;
  margin-top: .35rem;
  font-size: .8rem !important;
  font-weight: 600 !important;
  opacity: .85;
}

html[data-theme="light"] .otp-stage {
  background: #fff;
  box-shadow: 0 20px 50px rgba(40, 80, 130, .12);
}
html[data-theme="light"] .otp-input,
html[data-theme="light"] .otp-phone-wrap,
html[data-theme="light"] .otp-digit {
  background: #f7fafc;
}

@media (max-width: 860px) {
  .otp-stage { grid-template-columns: 1fr; }
  .otp-brand {
    padding: 1.4rem 1.35rem 1.25rem;
    min-height: auto;
  }
  .otp-brand-title { font-size: 1.35rem; }
  .otp-brand-copy { display: none; }
  .otp-brand-points { display: none; }
  .otp-card { padding: 1.4rem 1.2rem 1.25rem; }
}
@media (max-width: 420px) {
  .otp-name-row { grid-template-columns: 1fr; }
  .otp-digits { gap: .35rem; }
  .otp-digit { font-size: 1.15rem; }
  .otp-progress-label { display: none; }
}
