/* ============ AUTH LAYOUT ============ */
.auth-body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--ink-900);
  min-height: 100vh;
}

/* default sizing for inline SVGs in the auth UI */
.auth-shell svg { width: 16px; height: 16px; }
.auth-eyebrow svg { width: 13px; height: 13px; }
.showcase-eyebrow svg { width: 13px; height: 13px; }

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 100vh;
}

/* ===== LEFT: form panel ===== */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  padding: 32px 48px;
  background: var(--surface);
  position: relative;
  overflow-y: auto;
}

.auth-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0;
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.auth-brand img { width: 32px; height: 32px; }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.auth-brand-text strong {
  font-size: 16px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--brand-600);
}
.auth-brand-text span {
  font-size: 10.5px; font-weight: 600; color: var(--ink-500);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-top-link { font-size: 13px; color: var(--ink-500); }
.auth-top-link a { color: var(--brand-600); font-weight: 700; text-decoration: none; }
.auth-top-link a:hover { text-decoration: underline; }

.auth-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
}
.auth-form {
  width: 100%;
  max-width: 420px;
}

.auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.auth-title {
  font-size: 30px; font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.auth-title em {
  font-style: normal;
  color: var(--brand-600);
}
.auth-sub {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
}

/* SOCIAL */
.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.auth-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  transition: background 0.15s;
}
.auth-social-btn:hover { background: var(--surface-2); }
.auth-social-btn svg { width: 18px; height: 18px; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 0 18px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* FIELDS */
.auth-fields { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-700);
}
.auth-label a { font-size: 12px; color: var(--brand-600); text-decoration: none; font-weight: 600; }
.auth-label a:hover { text-decoration: underline; }

.auth-input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.auth-input-wrap > svg {
  position: absolute; left: 12px;
  width: 16px; height: 16px;
  color: var(--ink-400);
  pointer-events: none;
}
.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-900);
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.auth-input.no-icon { padding-left: 14px; }

.auth-toggle-pwd {
  position: absolute; right: 4px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: none; border: 0;
  color: var(--ink-400);
  cursor: pointer;
  border-radius: 8px;
}
.auth-toggle-pwd:hover { color: var(--ink-700); background: var(--surface-2); }
.auth-toggle-pwd svg { width: 16px; height: 16px; }

.auth-phone {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}
.auth-phone select {
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0 10px;
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

/* PWD STRENGTH */
.pwd-strength { margin-top: 6px; }
.pwd-strength-bar { display: flex; gap: 4px; }
.pwd-strength-bar span {
  flex: 1; height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
  transition: background 0.2s;
}
.pwd-strength-bar.s1 span:nth-child(-n+1) { background: var(--rose); }
.pwd-strength-bar.s2 span:nth-child(-n+2) { background: var(--amber); }
.pwd-strength-bar.s3 span:nth-child(-n+3) { background: #d4a017; }
.pwd-strength-bar.s4 span { background: var(--green); }
.pwd-strength-label {
  font-size: 11.5px; color: var(--ink-500);
  margin-top: 4px;
  display: flex; justify-content: space-between;
}
.pwd-strength-label strong { color: var(--ink-700); }

/* CHECKBOX */
.auth-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px;
  color: var(--ink-700);
  cursor: pointer;
  line-height: 1.5;
}
.auth-check input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--brand-500); flex-shrink: 0; }
.auth-check a { color: var(--brand-600); font-weight: 600; text-decoration: none; }
.auth-check a:hover { text-decoration: underline; }

/* SUBMIT */
.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  background: var(--brand-500);
  color: white;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 1px 0 rgba(168, 33, 11, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: background 0.15s;
}
.auth-submit:hover { background: var(--brand-600); }
.auth-submit svg { width: 16px; height: 16px; }

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-500);
}
.auth-foot a { color: var(--brand-600); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.auth-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-400);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.auth-bottom-links { display: flex; gap: 14px; }
.auth-bottom-links a { color: inherit; text-decoration: none; }
.auth-bottom-links a:hover { color: var(--ink-700); }

/* ===== RIGHT: showcase panel ===== */
.auth-showcase {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(255,107,80,0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(237,58,26,0.12), transparent 50%),
    linear-gradient(160deg, #1a1614 0%, #2a1f1c 100%);
  color: white;
  overflow: hidden;
  padding: 56px 64px;
  display: flex; flex-direction: column;
}

/* grid pattern */
.auth-showcase::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  pointer-events: none;
  mask: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 80%);
}

.showcase-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.showcase-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
}

.showcase-headline {
  position: relative; z-index: 2;
  font-size: 38px; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 22px 0 14px;
}
.showcase-headline em {
  font-style: normal;
  background: linear-gradient(90deg, #ff9d8a, #ff6b50);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.showcase-sub {
  position: relative; z-index: 2;
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 460px;
  margin: 0 0 36px;
}

/* dashboard preview */
.showcase-preview {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.showcase-preview-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
.showcase-preview-head .dots { display: flex; gap: 5px; }
.showcase-preview-head .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.showcase-preview-head .url {
  margin-left: 12px;
  font-size: 11px; font-family: var(--font-mono);
  color: rgba(255,255,255,0.5);
}

.showcase-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.showcase-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.showcase-stat-label { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
.showcase-stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.showcase-stat-delta { font-size: 11px; color: #4ade80; font-weight: 600; margin-top: 2px; display: inline-flex; align-items: center; gap: 3px; }
.showcase-stat-delta.warn { color: #fbbf24; }

.showcase-mini-bars {
  display: flex; align-items: flex-end;
  gap: 4px;
  height: 50px;
  margin-bottom: 12px;
}
.showcase-mini-bars span {
  flex: 1;
  background: linear-gradient(180deg, #ff9d8a, #ed3a1a);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.showcase-list { display: flex; flex-direction: column; gap: 6px; }
.showcase-list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 12px;
}
.showcase-list-row .mp-dot {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: white;
  flex-shrink: 0;
}
.showcase-list-row .id {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
}
.showcase-list-row .name { flex: 1; color: rgba(255,255,255,0.7); }
.showcase-list-row .chip-mini {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(74,222,128,0.18);
  color: #4ade80;
}

/* social proof */
.showcase-proof {
  position: relative; z-index: 2;
  margin-top: auto;
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.showcase-proof-avatars {
  display: flex;
}
.showcase-proof-avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #1a1614;
  margin-left: -8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: white;
}
.showcase-proof-avatars span:first-child { margin-left: 0; }
.showcase-proof-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
}
.showcase-proof-text strong { color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-form-panel { padding: 24px 24px 40px; }
}

@media (max-width: 480px) {
  .auth-form-panel { padding: 20px; }
  .auth-title { font-size: 24px; }
  .auth-field-row { grid-template-columns: 1fr; }
}
