/* ─── brand primitives ──────────────────────────────────── */
.wordmark { display: inline-flex; align-items: center; gap: 9px; }
.wordmark__t {
  font-size: 16px; font-weight: 600; letter-spacing: -.035em; color: var(--fg);
}
.wordmark__t b { font-weight: 800; color: var(--accent); }

/* ─── sign in ───────────────────────────────────────────── */
.auth {
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: 100dvh; background: var(--bg);
}

/* left panel ------------------------------------------------ */
.auth__brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 34px 46px 40px;
  background:
    radial-gradient(80% 60% at 15% 0%,  rgba(122,162,255,.20), transparent 62%),
    radial-gradient(70% 60% at 90% 15%, rgba(164,107,255,.18), transparent 60%),
    #0b0b10;
  color: #f4f4f7;
}
[data-theme="light"] .auth__brand { color: #f4f4f7; }
.auth__brand::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 40% 30%, #000, transparent 75%);
  pointer-events: none;
}
.auth__brandtop { position: relative; z-index: 2; }
.auth__brandtop .wordmark__t { color: #fff; }
.auth__brandtop .wordmark__t b { color: #9db6ff; }

.auth__pitch { position: relative; z-index: 2; margin-top: 54px; max-width: 460px; }
.auth__pitch h2 {
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.16;
  letter-spacing: -.035em; font-weight: 680;
}
.auth__pitch p { margin-top: 12px; font-size: 14.5px; color: rgba(244,244,247,.62); }

/* fanned screens ------------------------------------------- */
.auth__stack {
  position: relative; z-index: 1;
  flex: 1; min-height: 190px;
  margin: 40px 0 26px;
}
.auth__stack .ph {
  position: absolute; bottom: -26px;
  width: 132px; aspect-ratio: 9/19.5;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  animation: float 7s var(--ease) infinite;
  overflow: hidden;
}
.auth__stack .ph.has-shot {
  background: #14141a;
  border-color: rgba(255,255,255,.18);
}
.auth__stack .ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.auth__stack .ph img.is-on { opacity: 1; }
.auth__stack .ph--1 { left: 0;    rotate: -9deg;  animation-delay: 0s;   opacity: .5; }
.auth__stack .ph--2 { left: 96px; rotate: -3deg;  animation-delay: .5s;  opacity: .7; }
.auth__stack .ph--3 { left: 192px; rotate: 3deg;  animation-delay: 1s;   opacity: .85; }
.auth__stack .ph--4 { left: 288px; rotate: 9deg;  animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

.auth__stats {
  position: relative; z-index: 2;
  display: flex; gap: 38px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
}
.auth__stats b { display: block; font-size: 21px; font-weight: 680; letter-spacing: -.03em; }
.auth__stats span { font-size: 12px; color: rgba(244,244,247,.55); }

/* right panel ----------------------------------------------- */
.auth__panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 8vw; position: relative;
}
.auth__form { width: 100%; max-width: 360px; margin: 0 auto; position: relative; }
.auth__form.is-sent > *:not(#sent) { opacity: .16; pointer-events: none; }

.auth__mobilemark { display: none; margin-bottom: 26px; }
.auth__form h1 { font-size: 27px; margin-bottom: 7px; }
.auth__lead { color: var(--fg-muted); font-size: 14px; margin-bottom: 26px; }

.auth__label {
  display: block; font-size: 12.5px; font-weight: 550;
  color: var(--fg-muted); margin-bottom: 7px;
}
.auth__form .field { height: 46px; border-radius: 11px; margin-bottom: 14px; }
.auth__form .btn--block { height: 46px; border-radius: 11px; font-size: 14px; }

.auth__note { min-height: 26px; padding-top: 12px; font-size: 13px; color: var(--fg-muted); }
.auth__err { color: #ff6b83; }

/* success state --------------------------------------------- */
.auth__sent[hidden] { display: none; }
.auth__sent {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 4px;
  background: var(--bg);
  animation: rise .28s var(--ease);
}
.auth__tick {
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.auth__sent h3 { font-size: 19px; }
.auth__sent p { font-size: 13.5px; color: var(--fg-muted); margin: 4px 0 18px; }

.auth__foot {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; font-size: 11.5px; color: var(--fg-faint);
  letter-spacing: .02em;
}

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__mobilemark { display: block; }
  .auth__panel { padding: 40px 22px; }
}
