/* ============================================================
   Auth — login + SMS code
   ============================================================ */

html, body { height: 100%; }
body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-shell {
  width: 100%;
  max-width: 1080px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 620px;
  box-shadow: var(--sh-3);
}

/* ===== LEFT — brand panel ===== */
.auth-brand {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 32px 36px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(242, 198, 0, 0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(31, 76, 171, 0.10), transparent 60%);
  pointer-events: none;
}
.auth-brand > * { position: relative; }

.auth-brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-brand-head .brand-name { color: var(--text-on-dark); font-size: 18px; }
.auth-brand-head .brand-mark { background: var(--signal); color: var(--signal-on); }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(247, 246, 242, 0.65);
}
.auth-back:hover { color: var(--text-on-dark); }

.auth-pitch h1 {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: -0.04em;
  line-height: 1.0;
  font-weight: 600;
  margin: 0 0 12px;
  max-width: 380px;
}
.auth-pitch h1 em {
  font-style: normal;
  color: var(--signal);
}
.auth-pitch .lead {
  font-size: 14px;
  color: rgba(247, 246, 242, 0.7);
  max-width: 360px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-point {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.auth-point .num {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  background: rgba(247, 246, 242, 0.06);
  border: 1px solid rgba(247, 246, 242, 0.1);
  color: var(--signal);
}
.auth-point .n {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.auth-point .d {
  font-size: 12px;
  color: rgba(247, 246, 242, 0.6);
  margin-top: 2px;
  line-height: 1.45;
}

.auth-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(247, 246, 242, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-stamp .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.auth-stamp .live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--go);
  animation: pulseDot 1.6s ease-in-out infinite;
}

/* ===== RIGHT — form panel ===== */
.auth-form {
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.auth-form .kicker { margin-bottom: 12px; }
.auth-form h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.auth-form .sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.auth-form .sub strong { color: var(--text); font-weight: 600; }

/* phone input */
.phone-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0 4px 0 0;
  background: var(--surface);
  transition: border-color 120ms ease;
  margin-bottom: 14px;
}
.phone-input:focus-within { border-color: var(--text); }
.phone-input .country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 14px 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.phone-input .country .flag {
  width: 22px; height: 16px;
  border-radius: 3px;
  background: linear-gradient(to bottom,
    #fff 0 33%,
    #2D5BFF 33% 66%,
    #E32E2E 66% 100%);
}
.phone-input input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 16px;
  color: var(--text);
  width: 100%;
}
.phone-input input::placeholder { color: var(--text-faint); }

/* SMS code preview */
.code-preview {
  margin-top: 20px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.code-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.code-preview-head .l {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}
.code-preview-head .l .ms { font-size: 14px; vertical-align: -2px; color: var(--info); }
.code-preview-head .resend {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.code-cells {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.code-cell {
  height: 52px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}
.code-cell.filled { border-color: var(--text); }
.code-cell.active {
  border-color: var(--dark);
  background: var(--surface);
  position: relative;
}
.code-cell.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 2px;
  height: 22px;
  background: var(--text);
  transform: translateX(-50%);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { to { opacity: 0; } }

/* primary CTA */
.auth-cta {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--dark);
  color: var(--text-on-dark);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-cta:hover { background: var(--dark-2); }

.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-sep::before, .auth-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.auth-alt {
  display: flex;
  gap: 8px;
}
.auth-alt button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
}
.auth-alt button:hover { background: var(--surface-3); }
.auth-alt button .ms { font-size: 18px; }
.auth-alt .gov .ms { color: #E32E2E; }
.auth-alt .biz .ms { color: var(--signal); }

.auth-legal {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.auth-legal a { text-decoration: underline; color: var(--text-2); }
