/* Login / registration — split layout: brand hero + form panel */

.auth-body { min-height: 100dvh; }

.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.auth-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 44px clamp(32px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(60% 55% at 18% 8%,  rgba(236, 14, 140, .55), transparent 62%),
    radial-gradient(55% 50% at 95% 92%, rgba(124, 58, 255, .38), transparent 62%),
    radial-gradient(40% 40% at 60% 55%, rgba(236, 14, 140, .12), transparent 70%),
    var(--hero);
}
.auth-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 75% at 30% 30%, #000 15%, transparent 78%);
          mask-image: radial-gradient(75% 75% at 30% 30%, #000 15%, transparent 78%);
}

.hero-brand { display: flex; align-items: center; gap: 12px; }
.hero-brand img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px -6px rgba(236, 14, 140, .7); }
.hero-brand span { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }

.hero-copy h1 {
  font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em;
}
.grad {
  background: linear-gradient(95deg, #ff5fb8, #ff9bd6 55%, #c9a6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p { margin-top: 18px; max-width: 460px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .72); }

.hero-points { list-style: none; display: grid; gap: 18px; margin-top: 40px; max-width: 460px; }
.hero-points li { display: flex; align-items: flex-start; gap: 14px; }
.pt-icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  color: #ff7cc6; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.hero-points strong { display: block; font-size: 15px; font-weight: 600; }
.hero-points span:not(.pt-icon) { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .6); }

.hero-foot { font-size: 12.5px; color: rgba(255, 255, 255, .45); }

/* ─── Form panel ───────────────────────────────────────────────────────────── */
.auth-panel {
  position: relative; z-index: 1; /* keeps the overlapping card above the hero on small screens */
  display: flex; align-items: center; justify-content: center;
  padding: 40px clamp(20px, 4vw, 56px);
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 432px;
  padding: 34px 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  animation: pop .45s cubic-bezier(.2, .8, .2, 1);
}

.auth-head h2 { font-size: 26px; font-weight: 700; }
.auth-head p { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin: 24px 0 22px; padding: 4px;
  background: var(--surface-3); border-radius: var(--r);
}
.seg-btn {
  height: 38px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-3);
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { color: var(--ink); background: var(--surface); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form .btn { margin-top: 2px; }
.auth-note { text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* password strength meter */
.strength { display: flex; align-items: center; gap: 5px; min-height: 16px; }
.strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .2s; }
.strength span { flex: none; width: 54px; text-align: right; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.strength[data-score="1"] i:nth-child(-n+1) { background: #e5484d; }
.strength[data-score="2"] i:nth-child(-n+2) { background: #f0a020; }
.strength[data-score="3"] i:nth-child(-n+3) { background: #7cc24a; }
.strength[data-score="4"] i:nth-child(-n+4) { background: var(--ok); }

/* success state */
.auth-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0 2px; text-align: center; }
.auth-done h3 { font-size: 21px; }
.auth-done p { max-width: 320px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--ok); background: var(--ok-bg); box-shadow: 0 0 0 8px rgba(15, 157, 99, .08); }

/* ─── Tablet / mobile: hero collapses into a compact brand band ────────────── */
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-hero { gap: 20px; padding: 26px 22px 84px; }
  .hero-copy h1 { font-size: clamp(28px, 7.4vw, 38px); }
  .hero-copy > p { margin-top: 10px; font-size: 15px; }
  .hero-points, .hero-foot { display: none; }
  .auth-panel { align-items: flex-start; margin-top: -60px; padding: 0 16px calc(28px + env(safe-area-inset-bottom)); background: transparent; }
  .auth-card { padding: 26px 20px 24px; box-shadow: var(--sh-3); }
  .auth-head h2 { font-size: 23px; }
}
@media (max-width: 360px) { .hero-copy > p { display: none; } }
