/* ===========================================================================
   Sign in / sign up / reset
   ---------------------------------------------------------------------------
   Split layout: the form on the left, generated gradient artwork on the right.
   The artwork is pure CSS — no image files to ship, cache-bust or lose.
   =========================================================================== */

:root {
  --a-bg:       #141336;
  --a-bg-2:     #1b1a4a;
  --a-panel:    #191845;
  --a-line:     #2e2d63;
  --a-ink:      #f0f1ff;
  --a-ink-2:    #a9abd8;
  --a-ink-3:    #6f719f;
  --a-accent:   #7b5cff;
  --a-accent-2: #a855f7;
  --a-good:     #34d399;
  --a-bad:      #fb7185;
  --a-warn:     #fbbf24;
  --a-mono: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --a-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--a-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.shell {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  min-height: 100vh;
}

/* ------------------------------------------------------------- left panel */

.pane {
  background: var(--a-panel);
  padding: 40px 52px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--a-ink-3);
  text-decoration: none;
  font-size: 13px;
  width: fit-content;
  padding: 6px 0;
  transition: color .15s;
}
.back:hover { color: var(--a-ink); }
.back svg { width: 18px; height: 18px; }

.pane-body { margin: auto 0; padding: 32px 0; max-width: 400px; width: 100%; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--a-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.6px;
  margin: 0 0 12px;
  line-height: 1.15;
}

.lede {
  color: var(--a-ink-2);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 30px;
}
.lede a { color: var(--a-accent); text-decoration: none; font-weight: 500; }
.lede a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- fields */

.field { margin-bottom: 20px; position: relative; }

.field > label {
  display: block;
  font-size: 12px;
  color: var(--a-ink-3);
  margin-bottom: 7px;
  font-weight: 500;
}

.field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--a-line);
  color: var(--a-ink);
  font: inherit;
  font-size: 14.5px;
  padding: 8px 0 9px;
  outline: none;
  transition: border-color .18s;
}
.field input::placeholder { color: #4c4e7d; }
.field input:focus { border-bottom-color: var(--a-accent); }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--a-ink);
  -webkit-box-shadow: 0 0 0 40px var(--a-panel) inset;
}
.field.bad input { border-bottom-color: var(--a-bad); }

.field .hint  { font-size: 11.5px; color: var(--a-ink-3); margin-top: 6px; line-height: 1.5; }
.field .error { font-size: 11.5px; color: var(--a-bad);   margin-top: 6px; line-height: 1.5; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.reveal {
  position: absolute; right: 0; bottom: 9px;
  background: none; border: 0; cursor: pointer;
  color: var(--a-ink-3); font-size: 11.5px; padding: 4px;
}
.reveal:hover { color: var(--a-ink); }

/* -------------------------------------------------------------- controls */

.between {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 24px 0 26px; flex-wrap: wrap;
}

.check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--a-ink-2); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--a-accent); cursor: pointer; }

.link { color: var(--a-accent); text-decoration: none; font-size: 13px; }
.link:hover { text-decoration: underline; }

button.primary {
  width: 100%;
  border: 0;
  border-radius: 100px;
  padding: 14px 24px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(100deg, var(--a-accent), var(--a-accent-2));
  cursor: pointer;
  transition: filter .15s, transform .08s;
}
button.primary:hover:not(:disabled) { filter: brightness(1.12); }
button.primary:active:not(:disabled) { transform: translateY(1px); }
button.primary:disabled { opacity: .55; cursor: not-allowed; }

button.ghost {
  background: none; border: 1px solid var(--a-line); color: var(--a-ink-2);
  border-radius: 100px; padding: 11px 20px; font: inherit; font-size: 13px;
  cursor: pointer; transition: border-color .15s, color .15s;
}
button.ghost:hover { border-color: var(--a-accent); color: var(--a-ink); }

.foot { margin-top: 26px; font-size: 13px; color: var(--a-ink-2); }
.foot a { color: var(--a-accent); text-decoration: none; font-weight: 500; }
.foot a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- captcha */

.captcha-row { display: flex; gap: 14px; align-items: flex-end; }
.captcha-row .field { flex: 1; margin-bottom: 0; }

.captcha-box {
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.captcha-box img {
  height: 66px; width: 200px; border-radius: 6px;
  border: 1px solid var(--a-line); background: #0f141b; display: block;
  image-rendering: -webkit-optimize-contrast;
}
.captcha-box button {
  background: none; border: 0; color: var(--a-ink-3);
  font-size: 11px; cursor: pointer; padding: 2px;
}
.captcha-box button:hover { color: var(--a-accent); }

/* --------------------------------------------------------------- notices */

.notice {
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 22px;
  display: none;
}
.notice.show { display: block; }
.notice.err  { background: #3a1620; border: 1px solid #6b2836; color: #ffc8d0; }
.notice.ok   { background: #10301f; border: 1px solid #1f6242; color: #a8f0cc; }
.notice.warn { background: #33270f; border: 1px solid #6b5220; color: #fcdc9a; }
.notice.info { background: #1c1b45; border: 1px solid #343370; color: var(--a-ink-2); }
.notice code {
  font-family: var(--a-mono); background: rgba(0,0,0,.3);
  padding: 2px 6px; border-radius: 4px; font-size: 12.5px;
}

/* ------------------------------------------------------------- otp entry */

.otp-inputs { display: flex; gap: 10px; margin: 6px 0 4px; }
.otp-inputs input {
  width: 46px; height: 54px; text-align: center;
  font-family: var(--a-mono); font-size: 21px; font-weight: 600;
  background: #14133a; border: 1px solid var(--a-line);
  border-radius: 8px; color: var(--a-ink); outline: none;
  transition: border-color .15s;
}
.otp-inputs input:focus { border-color: var(--a-accent); }

.step { display: none; }
.step.on { display: block; }

.meter { height: 3px; background: var(--a-line); border-radius: 2px; margin-top: 9px; overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }

/* ------------------------------------------------------------- right art */

.art {
  position: relative;
  overflow: hidden;
  background: #0b0a24;
}

/* Layered conic and radial gradients, blurred into flowing colour — this is
   what replaces a shipped background image. */
.art::before, .art::after {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 55% at 30% 35%, #3b82f6 0%, transparent 60%),
    radial-gradient(45% 50% at 70% 30%, #a855f7 0%, transparent 62%),
    radial-gradient(50% 45% at 55% 75%, #ec4899 0%, transparent 60%),
    radial-gradient(40% 40% at 20% 80%, #22d3ee 0%, transparent 58%);
  filter: blur(46px) saturate(155%);
  animation: drift 26s ease-in-out infinite alternate;
}
.art::after {
  inset: -20%;
  background:
    conic-gradient(from 210deg at 60% 45%,
      transparent 0deg, #6366f1 60deg, transparent 150deg,
      #d946ef 240deg, transparent 330deg);
  filter: blur(66px) saturate(140%);
  opacity: .62;
  animation-duration: 34s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.04) rotate(0deg); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.14) rotate(9deg); }
}

@media (prefers-reduced-motion: reduce) {
  .art::before, .art::after { animation: none; }
}

.art-copy {
  position: absolute;
  left: 52px; right: 52px; bottom: 48px;
  z-index: 2;
}
.art-copy h2 {
  font-size: 25px; font-weight: 700; margin: 0 0 10px;
  letter-spacing: -.4px; line-height: 1.25;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
}
.art-copy p {
  margin: 0; font-size: 13.5px; line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
  max-width: 44ch;
}
.art-stats {
  display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap;
}
.art-stats div { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.art-stats .n { font-size: 21px; font-weight: 700; font-family: var(--a-mono); }
.art-stats .l { font-size: 11px; color: rgba(255,255,255,.78); letter-spacing: .05em; text-transform: uppercase; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .art { min-height: 180px; order: -1; }
  .art-copy { left: 24px; right: 24px; bottom: 22px; }
  .art-copy h2 { font-size: 19px; }
  .art-copy p, .art-stats { display: none; }
  .pane { padding: 26px 24px 44px; }
  .pane-body { margin: 0; padding: 14px 0; max-width: none; }
  h1 { font-size: 25px; }
  .row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 420px) {
  .otp-inputs { gap: 7px; }
  .otp-inputs input { width: 40px; height: 48px; font-size: 18px; }
  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-box img { width: 100%; height: 76px; }
}
