/* =========================================================
   VERSO LOGIN — split panel, pricing-card design language
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:         #FFFFFF;
  --bg-2:       #F5F5F4;
  --paper:      #FFFFFF;
  --ink:        #0A0A0A;
  --ink-2:      #1A1A1A;
  --text:       #0A0A0A;
  --muted:      #595959;
  --faint:      #9A9A9A;
  --line:       rgba(10,10,10,0.09);
  --line-soft:  rgba(10,10,10,0.06);
  --accent:     #8B5CF6;
}

html, body { height: 100%; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { background: var(--bg); min-height: 100vh; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

em {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.5px;
}

/* =========================================================
   SHELL — 50/50 split, full viewport
   ========================================================= */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* =========================================================
   LEFT — form panel
   ========================================================= */
.auth-form-panel {
  position: relative;
  background: #fff;
  padding: 36px 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  align-self: flex-start;
  display: flex;
  align-items: center;
}
.auth-logo img { height: 32px; width: auto; }

.auth-card {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: -14px;
  line-height: 1.5;
}

/* --- Social buttons --- */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .2s;
}
.auth-social-btn:hover {
  background: rgba(10,10,10,0.03);
  border-color: rgba(10,10,10,0.18);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10,10,10,0.05);
}
.auth-social-btn:active { transform: translateY(0); }
.auth-social-btn svg { flex-shrink: 0; }

/* --- Divider --- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --- Form fields --- */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--ink);
}
.auth-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: var(--faint); }
.auth-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10,10,10,0.06);
}

/* --- Row: remember + forgot --- */
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -2px 0 2px;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.auth-forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.auth-forgot:hover { color: var(--accent); }

/* --- Submit (matches pricing-cta-dark) --- */
.auth-submit {
  height: 48px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(180deg, #2a2a2a 0%, #0a0a0a 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-top: 4px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 -2px 4px rgba(0,0,0,0.3) inset,
    0 8px 20px rgba(10,10,10,0.22);
  transition: transform .15s, box-shadow .2s, opacity .15s;
}
.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.20) inset,
    0 -2px 4px rgba(0,0,0,0.3) inset,
    0 14px 30px rgba(10,10,10,0.32);
}
.auth-submit:disabled {
  opacity: .55;
  cursor: progress;
}

/* --- Message (error / info) --- */
.auth-msg {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: -4px;
  min-height: 1.2em;
  color: #c0392b;
}
.auth-msg.info { color: #15803d; }
.auth-msg:empty { display: none; }

/* --- Switch link --- */
.auth-switch {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.auth-switch a {
  color: var(--ink);
  font-weight: 600;
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.auth-switch a:hover { color: var(--accent); }

/* --- Footer links --- */
.auth-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--faint);
}
.auth-foot a { transition: color .15s; }
.auth-foot a:hover { color: var(--ink); }

/* =========================================================
   RIGHT — visual panel (Verso palette + watercolor blobs)
   ========================================================= */
.auth-visual-panel {
  position: relative;
  overflow: hidden;
  background: #faf9f7;
  isolation: isolate;
}

.auth-visual-blobs {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 12% 14%, rgba(120,165,255,.45) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 88% 8%, rgba(180,140,220,.40) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255,160,70,.38) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 95% 75%, rgba(255,210,120,.45) 0%, transparent 60%);
}
.auth-visual-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 20%, transparent 88%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 20%, transparent 88%);
}
/* =========================================================
   STAGE — orbital composition + prompt pill + design card
   ========================================================= */
.lp-stage {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: min(520px, 88%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 8px;
}

.lp-headline {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
  text-align: center;
  color: var(--ink);
}
.lp-gradient {
  background: linear-gradient(110deg, #8b5cf6 0%, #c084fc 35%, #ec4899 65%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Orbit & nodes --- */
.lp-orbit {
  position: relative;
  width: 100%;
  height: 250px;
  margin-top: 8px;
}
.lp-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lp-hex {
  position: absolute;
  top: 50px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 10px 28px rgba(124,58,237,0.18),
    0 4px 10px rgba(10,10,10,0.06);
  border: 1px solid rgba(124,58,237,0.10);
}

.lp-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lp-node-icon {
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(10,10,10,.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 4px 12px rgba(10,10,10,0.05),
    0 1px 2px rgba(10,10,10,0.04);
  border: 1px solid rgba(10,10,10,0.05);
}
.lp-node-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(10,10,10,.55);
  letter-spacing: -0.1px;
}

.lp-n-layouts     { top: 70px;  left: 22%; }
.lp-n-typography  { top: 70px;  right: 22%; }
.lp-n-themes      { top: 142px; left: 10%; }
.lp-n-assets      { top: 142px; right: 10%; }
.lp-n-components  { top: 158px; left: 50%; transform: translateX(-50%); }

/* --- Prompt pill --- */
.lp-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 13px 26px;
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
  border: 1.5px solid rgba(124,58,237,0.22);
  border-radius: 100px;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 8px 24px rgba(124,58,237,0.12),
    0 2px 6px rgba(10,10,10,0.04);
  margin-top: -4px;
}
.lp-pill > span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #7c3aed;
}
.lp-pill-wand { flex-shrink: 0; }

.lp-connector {
  width: 1px;
  height: 26px;
  background: repeating-linear-gradient(180deg, rgba(124,58,237,.4) 0 3px, transparent 3px 6px);
  margin: 0 auto;
}

/* --- Generated design card --- */
.lp-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(10,10,10,0.05);
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 14px 36px rgba(10,10,10,0.06),
    0 4px 10px rgba(10,10,10,0.03);
}

.lp-card-prompt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(196,181,253,.45) 0%, transparent 60%),
    radial-gradient(120% 200% at 100% 100%, rgba(254,215,170,.4) 0%, transparent 60%),
    #faf8ff;
  margin-bottom: 12px;
}
.lp-card-prompt p {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.1px;
  line-height: 1.4;
  color: #0a0a0a;
  margin: 0;
}
.lp-card-send {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(124,58,237,.35);
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s;
}
.lp-card-send:hover { background: rgba(124,58,237,0.08); }

.lp-screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.lp-screen {
  background: #fff;
  border: 1px solid rgba(10,10,10,0.05);
  border-radius: 10px;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 130px;
}
.lp-screen.lp-s-purple {
  background: linear-gradient(180deg, #ede4ff 0%, #d8c4ff 100%);
}
.lp-screen.lp-s-warm {
  background: linear-gradient(180deg, #ffe8d8 0%, #ffcfa8 100%);
}
.lp-s-h {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  line-height: 1.15;
}
.lp-s-donut { display: flex; justify-content: center; padding: 4px 0; }
.lp-s-bars {
  display: flex; align-items: flex-end; gap: 2px;
  height: 38px; padding: 2px 0;
}
.lp-s-bars b {
  flex: 1; height: var(--h);
  background: rgba(124,58,237,.6);
  border-radius: 1.5px;
}
.lp-s-line { position: relative; }
.lp-s-pct {
  position: absolute;
  top: 0; right: 0;
  font-size: 7px;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124,58,237,.1);
  padding: 1px 4px;
  border-radius: 100px;
}
.lp-s-sun {
  position: relative;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffd8b3 0%, #c4a8d8 100%);
}
.lp-s-orb {
  position: absolute;
  width: 14px; height: 14px;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, #fff4e0 0%, #ffb878 60%, transparent 80%);
  border-radius: 50%;
}
.lp-s-ridge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  background: rgba(80,40,90,.3);
  clip-path: polygon(0 50%, 20% 30%, 40% 55%, 60% 25%, 80% 50%, 100% 35%, 100% 100%, 0 100%);
}
.lp-s-rows {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: auto;
}
.lp-s-rows i {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: rgba(10,10,10,.08);
}
.lp-screen.lp-s-purple .lp-s-rows i { background: rgba(124,58,237,.18); }
.lp-screen.lp-s-warm .lp-s-rows i { background: rgba(160,80,40,.16); }

.lp-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-regen, .lp-use {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  border-radius: 100px;
  padding: 8px 14px;
  border: 1px solid rgba(10,10,10,0.08);
  background: #fff;
  color: #0a0a0a;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.lp-regen:hover { background: rgba(10,10,10,0.04); }
.lp-use {
  border: none;
  color: #fff;
  background: linear-gradient(110deg, #a78bfa 0%, #7c3aed 45%, #ec4899 100%);
  box-shadow: 0 6px 16px rgba(124,58,237,0.32);
  padding: 9px 16px;
}
.lp-use:hover { transform: translateY(-1px); }
.lp-use-check {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center;
}

.auth-visual-spark {
  position: absolute;
  z-index: 2;
  color: var(--accent);
  pointer-events: none;
  font-size: 20px;
  opacity: .65;
  animation: authSparkFloat 5s ease-in-out infinite;
}
.spark-1 { top: 14%; left: 18%; }
.spark-2 { bottom: 22%; right: 16%; font-size: 16px; animation-delay: 1.2s; animation-direction: reverse; }
.spark-3 { top: 48%; right: 22%; font-size: 12px; animation-delay: 2.4s; }
@keyframes authSparkFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .65; }
  50%      { transform: translateY(-12px) rotate(20deg); opacity: 1; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual-panel { display: none; }
  .auth-form-panel { padding: 28px 24px; min-height: 100vh; }
  .auth-logo { align-self: center; }
}
@media (max-width: 480px) {
  .auth-form-panel { padding: 24px 18px 20px; }
  .auth-card { gap: 18px; }
  .auth-title { font-size: 26px; }
}
