/* =====================================================================
   Online Tijara — premium auth (free-member registration + verification
   states). Loads on the registration page over the cosmos backdrop, so it
   reuses the --ot-* tokens from cosmos.css. RTL, mobile-first, Obsidian
   Forge. Markup comes from the ot-registration mu-plugin. Latin numerals.
   ===================================================================== */

.ot-auth { max-width: 1080px; margin: 0 auto; padding: clamp(16px, 4vw, 40px) 0 clamp(40px, 6vw, 72px); }

/* ---- two-column: ecosystem aside + form card ---- */
.ot-auth-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(20px, 3vw, 34px); align-items: stretch; }

.ot-auth-aside,
.ot-auth-card {
  background: var(--ot-glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--ot-border);
  border-radius: 24px;
  padding: clamp(26px, 3.4vw, 44px);
  position: relative;
  overflow: hidden;
}

/* aside — exclusivity framing */
.ot-auth-aside { display: flex; flex-direction: column; }
.ot-auth-aside::before {
  content: ""; position: absolute; inset-inline-start: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,26,.28), transparent 66%); pointer-events: none;
}
.ot-auth-kicker { position: relative; color: var(--ot-gold); font-family: var(--ot-num); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 14px; }
.ot-auth-aside-h { position: relative; font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; color: var(--ot-text); margin: 0 0 14px; }
.ot-auth-hl { background: linear-gradient(135deg, var(--ot-orange), var(--ot-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ot-auth-aside-p { position: relative; color: var(--ot-text-dim); line-height: 1.9; margin: 0 0 22px; }
.ot-auth-benefits { position: relative; list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 13px; }
.ot-auth-benefits li { display: flex; align-items: center; gap: 12px; color: var(--ot-text); font-family: 'Tajawal', sans-serif; line-height: 1.6; }
.ot-auth-bic { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,107,26,.1); border: 1px solid rgba(255,210,122,.2); font-size: 1.1rem; }
.ot-auth-trust { position: relative; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ot-border); color: var(--ot-text-dim); font-size: .85rem; }

/* form card */
.ot-auth-title { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ot-text); margin: 0 0 4px; }
.ot-auth-sub { color: var(--ot-text-dim); margin: 0 0 22px; font-size: .95rem; }
.ot-auth-sub a, .ot-auth-card a { color: var(--ot-gold); text-decoration: none; }
.ot-auth-sub a:hover { color: var(--ot-orange-2); }

.ot-auth-errors { display: grid; gap: 6px; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.35); }
.ot-auth-errors span { color: #ffb4b4; font-size: .9rem; line-height: 1.6; }
.ot-auth-errors a { color: var(--ot-gold); }

.ot-auth-form { display: grid; gap: 16px; }
.ot-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ot-field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.ot-field label { color: var(--ot-text-dim); font-size: .85rem; font-family: 'Tajawal', sans-serif; }
.ot-auth-form :is(input, select) {
  background: rgba(255,255,255,.04); border: 1px solid var(--ot-border); border-radius: 13px;
  color: var(--ot-text); padding: 13px 15px; font-size: 1rem; font-family: 'Tajawal', sans-serif;
  transition: border-color .25s var(--ot-ease), box-shadow .25s var(--ot-ease), background .25s var(--ot-ease);
}
.ot-auth-form :is(input, select):focus {
  outline: none; border-color: rgba(255,210,122,.55);
  box-shadow: 0 0 0 3px rgba(255,107,26,.16); background: rgba(255,255,255,.06);
}
.ot-auth-form ::placeholder { color: var(--ot-text-dim); }
.ot-auth-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ot-text-dim) 50%), linear-gradient(135deg, var(--ot-text-dim) 50%, transparent 50%); background-position: calc(0% + 16px) center, calc(0% + 21px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* password show/hide */
.ot-field-pass .ot-pw-toggle { position: absolute; inset-inline-start: 10px; bottom: 9px; background: none; border: none; cursor: pointer; font-size: 1.05rem; opacity: .6; padding: 4px; line-height: 1; }
.ot-field-pass .ot-pw-toggle:hover, .ot-field-pass .ot-pw-toggle.is-on { opacity: 1; }
.ot-field-hint { color: var(--ot-text-dim); font-size: .78rem; }

/* honeypot — visually hidden, not display:none (so bots see it) */
.ot-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ot-turnstile:empty { display: none; }

.ot-auth-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 4px; padding: 16px 28px; border: none; border-radius: 50px; cursor: pointer;
  background: linear-gradient(135deg, var(--ot-orange), var(--ot-orange-2) 60%, var(--ot-gold));
  color: #160a02; font-weight: 800; font-family: 'Cairo', sans-serif; font-size: 1.02rem; text-decoration: none;
  box-shadow: 0 14px 34px var(--ot-glow); transition: transform .3s var(--ot-ease), box-shadow .3s var(--ot-ease);
}
.ot-auth-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 44px var(--ot-glow); }
.ot-auth-fine { color: var(--ot-text-dim); font-size: .78rem; line-height: 1.7; margin: 6px 0 0; text-align: center; }

/* ---- verification-waiting / already-member states ---- */
.ot-auth-state { max-width: 640px; }
.ot-auth-panel {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(160deg, rgba(26,26,38,.92), rgba(13,13,20,.96));
  border: 1px solid rgba(255,210,122,.24); border-radius: 26px;
  padding: clamp(30px, 5vw, 52px) clamp(22px, 4vw, 40px);
  box-shadow: 0 36px 90px rgba(255,107,26,.20);
}
.ot-auth-core { position: absolute; top: -150px; inset-inline-start: 50%; transform: translateX(50%); width: 340px; height: 340px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,107,26,.36), rgba(255,210,122,.10) 42%, transparent 68%); animation: ot-auth-bloom 4s var(--ot-ease) infinite; }
.ot-auth-badge { position: relative; display: inline-block; padding: 8px 18px; border-radius: 50px; font-size: .82rem; font-weight: 800; color: var(--ot-gold); background: rgba(255,210,122,.09); border: 1px solid rgba(255,210,122,.28); margin-bottom: 18px; font-family: 'Tajawal', sans-serif; }
.ot-auth-panel-h { position: relative; font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.3rem); color: #fff; margin: 0 0 12px; }
.ot-auth-panel-p { position: relative; color: var(--ot-text-dim); line-height: 1.9; margin: 0 auto 24px; max-width: 460px; font-family: 'Tajawal', sans-serif; }
.ot-auth-panel-p strong { color: var(--ot-gold); }
.ot-auth-note { position: relative; display: inline-block; margin-bottom: 18px; padding: 8px 16px; border-radius: 50px; background: rgba(46,224,122,.1); border: 1px solid rgba(46,224,122,.3); color: #2ee07a; font-size: .85rem; }
.ot-auth-steps { position: relative; max-width: 420px; margin: 0 auto 26px; text-align: start; }
.ot-auth-steps-h { display: block; font-family: 'Cairo', sans-serif; font-weight: 800; color: #fff; margin-bottom: 12px; }
.ot-auth-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ot-auth-steps li { display: flex; align-items: center; gap: 12px; color: var(--ot-text-dim); font-family: 'Tajawal', sans-serif; line-height: 1.6; }
.ot-auth-steps li b { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; color: #160a02; background: linear-gradient(135deg, var(--ot-orange), var(--ot-gold)); }
.ot-auth-actions { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 360px; margin: 0 auto; }
.ot-auth-actions .ot-auth-submit { width: 100%; }
.ot-auth-resend { color: var(--ot-gold); text-decoration: none; font-size: .9rem; }
.ot-auth-resend:hover { color: var(--ot-orange-2); }

@keyframes ot-auth-bloom { 0%,100% { opacity:.55; transform: translateX(50%) scale(.94);} 50% { opacity:1; transform: translateX(50%) scale(1.06);} }

/* ---- mobile-first ---- */
@media (max-width: 860px) {
  .ot-auth-grid { grid-template-columns: 1fr; }
  .ot-auth-aside { order: 2; }          /* form first, ecosystem context below */
  .ot-auth-card { order: 1; }
  .ot-auth-aside::before { display: none; }
}
@media (max-width: 480px) {
  .ot-auth-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ot-auth-core { animation: none; }
  .ot-auth-submit, .ot-auth-form :is(input, select) { transition: none !important; }
}
