/* Plarium join — design A (dark gold, Plarium + OptiCity). Mobile first;
   one card that moves through login → code → form → done. Every text ≥16px. */
:root {
  --bg0: #0a0a0c; --bg1: #121214; --card: rgba(22, 20, 18, .9);
  --line: rgba(250, 195, 97, .28); --line-soft: rgba(255, 255, 255, .12);
  --text: #FFF8EC; --muted: #B9B3A6;
  --gold: #FAC361; --gold-2: #E76F1C; --field: rgba(255, 255, 255, .05);
  --radius: 22px; --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh; font-family: Assistant, Arial, sans-serif; color: var(--text);
  background:
    radial-gradient(760px 420px at 75% -5%, rgba(250, 195, 97, .16), transparent 70%),
    radial-gradient(620px 440px at 5% 105%, rgba(231, 111, 28, .14), transparent 70%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  display: flex; align-items: center; justify-content: center;
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
}
.shell { width: 100%; max-width: 420px; }
.brand { text-align: center; margin-bottom: 18px; }
.brand-logo { display: block; margin: 0 auto; filter: drop-shadow(0 10px 26px rgba(231, 111, 28, .4)); }
.brand-sub { margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 16px; font-weight: 700; }
.brand-sub img { display: block; }

.card {
  position: relative; border-radius: var(--radius); padding: 24px 20px 26px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.step { animation: rise .32s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

.h { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.sub { margin: 6px 0 18px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.sub b { color: var(--text); }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.field input, .otp-in {
  width: 100%; border-radius: 14px; padding: 15px 16px; font: 600 17px Assistant, Arial;
  background: var(--field); border: 1px solid var(--line-soft); color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder { color: #7c766b; }
.field input:focus, .otp-in:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250, 195, 97, .22); }
.field input:disabled { color: var(--muted); }

.otp-in {
  text-align: center; font: 800 30px/1 "Assistant", monospace; letter-spacing: .5em;
  padding-inline-start: .5em; direction: ltr; margin: 4px 0 2px;
}

.btn {
  width: 100%; margin-top: 18px; border: 0; border-radius: 14px; padding: 16px;
  font: 800 18px Assistant, Arial; color: #1a1208; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 14px 30px -12px rgba(231, 111, 28, .85);
  transition: transform .14s var(--ease), filter .14s var(--ease);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn[aria-busy="true"] { filter: saturate(.7) brightness(.9); cursor: progress; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.hint { margin: 12px 0 0; font-size: 16px; color: var(--muted); text-align: center; }
.err { margin: 12px 0 0; font-size: 16px; font-weight: 600; color: #FCA5A5; text-align: center; }

.link { display: block; width: 100%; margin: 12px 0 0; background: none; border: 0; color: var(--gold); font: 700 16px Assistant, Arial; cursor: pointer; }
.link:disabled { color: var(--muted); cursor: default; }

.done { text-align: center; padding: 10px 0 6px; }
.tick {
  width: 74px; height: 74px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 38px; color: #1a1208; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 16px 34px -14px rgba(231, 111, 28, .9); animation: pop .4s var(--ease) both;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.foot { margin: 16px 0 0; text-align: center; font-size: 16px; color: var(--muted); }
.foot b { color: #9fd0ff; }
