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

:root {
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --purple-dark: #4c1d95;
  --purple-glow: rgba(124,58,237,0.35);
  --dark: #0a0a0f;
  --dark2: #0f0f1a;
  --dark3: #13131f;
  --card: #0d0d18;
  --border: rgba(124,58,237,0.2);
  --border2: rgba(255,255,255,0.06);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --font: 'Inter', sans-serif;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}
a { text-decoration: none; color: inherit; }

/* CURSOR */
.cursor, .cursor-follower { display:none !important; }
.cursor {
  width: 10px; height: 10px;
  background: var(--purple-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s;
}
.cursor-follower {
  width: 30px; height: 30px;
  border: 1.5px solid var(--purple-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all 0.15s ease;
  opacity: 0.4;
}

/* PARTICLES */
#particles {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* PAGE LAYOUT */
.auth-page {
  display: flex;
  min-height: 100vh;
  position: relative; z-index: 1;
}

/* LEFT PANEL */
.auth-left {
  flex: 0 0 42%;
  background: linear-gradient(160deg, #0d0d1f 0%, #0a0a0f 60%, #0f0520 100%);
  border-right: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-logo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: auto;
}
.auth-logo img {
  width: 26px; height: 26px;
  object-fit: contain; border-radius: 6px;
}
.auth-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -1px; color: var(--white);
}
.auth-logo em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-light), #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left-content {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 60px 0 40px;
}

.auth-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--purple-light); margin-bottom: 24px;
  width: fit-content;
}
.bdot {
  width: 7px; height: 7px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: bpulse 2s infinite;
}
@keyframes bpulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(1.3); }
}

.auth-tagline h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 20px; color: var(--white);
}
.g-text {
  background: linear-gradient(135deg, var(--purple-light), #c084fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-tagline p {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.7; max-width: 340px;
  margin-bottom: 40px;
}

.auth-features { display: flex; flex-direction: column; gap: 16px; }
.af-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--text-muted);
}
.af-item i {
  width: 36px; height: 36px;
  background: rgba(124,58,237,0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.af-item [data-lucide] {
  width: 16px; height: 16px;
  stroke: var(--purple-light);
  fill: none; stroke-width: 1.8;
}

.auth-left-footer {
  display: flex; gap: 20px; align-items: center;
  font-size: 0.78rem; color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border2);
}
.auth-left-footer a { transition: color 0.2s; }
.auth-left-footer a:hover { color: var(--purple-light); }

/* RIGHT PANEL */
.auth-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: var(--dark);
}

.auth-box {
  width: 100%; max-width: 480px;
}

/* TABS */
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 5px;
  margin-bottom: 36px;
}
.atab {
  flex: 1; padding: 11px;
  border: none; border-radius: 10px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  background: transparent; color: var(--text-muted);
}
.atab.active {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 20px var(--purple-glow);
}

/* FORM */
.aform { display: flex; flex-direction: column; gap: 20px; }
.aform.hidden { display: none; }

.aform-header { margin-bottom: 4px; }
.aform-header h2 {
  font-size: 1.6rem; font-weight: 900;
  color: var(--white); margin-bottom: 6px;
}
.aform-header p { font-size: 0.88rem; color: var(--text-muted); }

.afield { display: flex; flex-direction: column; gap: 6px; }
.afield label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text); letter-spacing: 0.3px;
}
.ainput-wrap {
  position: relative;
  display: flex; align-items: center;
}
.ainput-wrap > [data-lucide]:first-child {
  position: absolute; left: 14px;
  width: 16px; height: 16px;
  stroke: var(--text-muted); fill: none; stroke-width: 1.8;
  pointer-events: none; flex-shrink: 0;
}
.ainput-wrap input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 13px 44px 13px 42px;
  color: var(--white); font-family: var(--font);
  font-size: 0.9rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ainput-wrap input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.ainput-wrap input::placeholder { color: var(--text-muted); }
.ainput-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5); cursor: pointer;
}
.afield-hint {
  font-size: 0.75rem; color: var(--text-muted);
  padding-left: 2px;
}

/* PASSWORD TOGGLE */
.toggle-pass {
  position: absolute; right: 12px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  color: var(--text-muted); transition: color 0.2s;
  display: flex; align-items: center;
}
.toggle-pass:hover { color: var(--purple-light); }
.toggle-pass [data-lucide] {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
}

/* PASSWORD STRENGTH */
.pass-strength {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px;
}
.ps-bar {
  flex: 1; height: 4px;
  background: var(--border2);
  border-radius: 2px; overflow: hidden;
}
.ps-bar span {
  display: block; height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}
#psLabel { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* CHECKBOX */
.acheckbox {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 0.83rem; color: var(--text-muted);
  line-height: 1.5;
}
.acheckbox input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--purple); margin-top: 2px; cursor: pointer;
}
.acheckbox a { color: var(--purple-light); }
.acheckbox.small { font-size: 0.8rem; }

.aform-row-between {
  display: flex; justify-content: space-between;
  align-items: center;
}
.aforgot { font-size: 0.82rem; color: var(--purple-light); }
.aforgot:hover { text-decoration: underline; }

/* FORM MESSAGE */
.aform-msg {
  padding: 12px 16px; border-radius: 10px;
  font-size: 0.84rem; font-weight: 600;
  display: none;
}
.aform-msg.success {
  background: rgba(34,197,94,0.08);
  border: 1px solid var(--green);
  color: var(--green); display: block;
}
.aform-msg.error {
  background: rgba(239,68,68,0.08);
  border: 1px solid var(--red);
  color: var(--red); display: block;
}

/* SUBMIT BUTTON */
.abtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--purple);
  color: var(--white);
  border: none; border-radius: 10px;
  padding: 14px; font-family: var(--font);
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: all 0.25s;
  margin-top: 4px;
}
.abtn:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow);
}
.abtn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.abtn [data-lucide] {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

.aswitch {
  text-align: center; font-size: 0.83rem;
  color: var(--text-muted); margin-top: 4px;
}
.aswitch a { color: var(--purple-light); font-weight: 600; }

/* TERMS WRAP */
.aterm-wrap {
  display: flex; flex-direction: column; gap: 10px;
}
.aterm-links {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.aterm-sep {
  font-size: 0.78rem; color: var(--text-muted);
}
.aterm-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--purple-light);
  padding: 6px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600;
  transition: all 0.2s; text-decoration: none;
}
.aterm-btn:hover {
  background: rgba(124,58,237,0.18);
  border-color: var(--purple-light);
  transform: translateY(-1px);
}
.aterm-btn svg { flex-shrink: 0; stroke: var(--purple-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { padding: 60px 20px; }
}
@media (max-width: 480px) {
  .auth-box { max-width: 100%; }
  .aform-header h2 { font-size: 1.3rem; }
}

/* 2026 auth refresh */
.auth-left { flex-basis: 38%; padding: 34px 42px; }
.auth-left-content { padding: 40px 0; }
.auth-tagline h1 { font-size: clamp(2rem,3.1vw,2.8rem); }
.auth-tagline p { max-width: 390px; }
.auth-features { gap: 12px; }
.auth-right { padding: 32px 28px; }
.auth-box { max-width: 440px; }
.aform { gap: 14px; }
.afield { gap: 7px; }
.ainput-wrap { transition: border-color .2s, box-shadow .2s, background .2s; }
.ainput-wrap:focus-within { border-color: rgba(168,85,247,.55); box-shadow: 0 0 0 4px rgba(124,58,237,.09); background: rgba(255,255,255,.035); }
.abtn { box-shadow: 0 10px 30px rgba(124,58,237,.16); }
.simple-auth { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; background:radial-gradient(circle at 50% 10%,rgba(124,58,237,.12),transparent 35%),var(--dark); }
.auth-simple-card { width:min(100%,460px); background:rgba(13,13,24,.92); border:1px solid rgba(124,58,237,.2); border-radius:24px; padding:34px; box-shadow:0 24px 80px rgba(0,0,0,.35); }
.simple-logo { display:inline-flex; align-items:center; gap:9px; color:#fff; font-size:1.1rem; margin-bottom:34px; }
.simple-logo img { width:30px;height:30px;object-fit:contain;border-radius:7px; }
.simple-icon { width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:rgba(124,58,237,.12);border:1px solid rgba(124,58,237,.22);color:#c084fc;margin-bottom:20px; }
.simple-icon svg { width:25px;height:25px; }
.error-icon { color:#f87171;background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.2); }
.auth-simple-card h1 { color:#fff;font-size:1.75rem;letter-spacing:-.7px;margin-bottom:9px; }
.auth-simple-card > p { color:var(--text-muted);line-height:1.65;font-size:.92rem;margin-bottom:25px; }
.auth-simple-card form { display:flex;flex-direction:column;gap:10px; }
.auth-simple-card form label { color:#cbd5e1;font-size:.8rem;font-weight:600;margin-top:7px; }
.auth-simple-card .aform-msg { min-height:0; }
.simple-btn { display:flex;align-items:center;justify-content:center;gap:9px;margin-top:7px; }
.simple-back { display:flex;align-items:center;justify-content:center;gap:7px;color:#94a3b8;font-size:.84rem;margin-top:22px; }
.simple-back:hover { color:#c084fc; }
@media (max-width: 900px) { .auth-left { display:none; } .auth-right { min-height:100vh; } }
@media (max-width:520px) { .auth-simple-card { padding:25px 20px; border-radius:20px; } .auth-right { padding:20px 16px; } }
