@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* =====================
   VARIABLES
===================== */
:root {
  --brand:      #4f6ef7;
  --brand-l:    #6b83f8;
  --brand-d:    #3452d6;
  --accent:     #00d4aa;
  --red:        #ff5c7a;
  --bg:         #060b1a;
  --bg-card:    rgba(255,255,255,0.05);
  --bg-glass:   rgba(255,255,255,0.08);
  --border:     rgba(255,255,255,0.10);
  --border-act: rgba(79,110,247,0.5);
  --text:       #ffffff;
  --text-m:     rgba(255,255,255,0.55);
  --text-s:     rgba(255,255,255,0.75);
  --input-bg:   rgba(255,255,255,0.06);
  --input-bd:   rgba(255,255,255,0.12);
  --shadow:     0 24px 64px rgba(0,0,0,0.6);
}

/* =====================
   RESET
===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
html { scroll-behavior: smooth; }

/* =====================
   BODY — FULL SCREEN SPLIT
===================== */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* =====================
   AUTH WRAPPER (two columns)
===================== */
.auth-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* =====================
   LEFT PANEL — Branding
===================== */
.auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 60px;
  background: linear-gradient(145deg, #080e22 0%, #0c1535 60%, #0a1a2e 100%);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* grid bg */
.auth-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,110,247,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,110,247,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* glow orbs */
.auth-panel::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,110,247,0.22) 0%, transparent 70%);
  top: -80px; left: -80px;
  pointer-events: none;
  filter: blur(40px);
}

.panel-orb2 {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.15) 0%, transparent 70%);
  bottom: 60px; right: -60px;
  pointer-events: none;
  filter: blur(60px);
}

/* Brand logo top-left */
.panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.panel-brand img {
  width: 46px; height: 46px; object-fit: contain;
}
.panel-brand span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px; font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--brand-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main tagline */
.panel-content {
  position: relative;
  z-index: 2;
}
.panel-tag {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: rgba(79,110,247,0.15);
  border: 1px solid rgba(79,110,247,0.35);
  color: var(--brand-l);
  font-size: 12px; font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 22px;
}
.panel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-l);
  animation: pdot 1.5s ease-in-out infinite;
}
@keyframes pdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.6)} }

.panel-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px; font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.panel-content h2 span {
  background: linear-gradient(135deg, var(--brand-l), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.panel-content p {
  font-size: 15px; color: var(--text-m);
  line-height: 1.75; max-width: 380px;
  margin-bottom: 36px;
}

/* Stats row on panel */
.panel-stats {
  display: flex; gap: 0;
}
.pstat {
  flex: 1;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}
.pstat + .pstat { margin-left: 12px; }
.pstat .pval {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 800; color: #fff;
  margin-bottom: 4px;
}
.pstat .pval em { color: var(--accent); font-style: normal; }
.pstat .pdesc { font-size: 12px; color: var(--text-m); font-weight: 500; }

/* Testimonial / bottom quote */
.panel-footer {
  position: relative; z-index: 2;
}
.panel-quote {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 18px 20px;
}
.panel-quote p {
  font-size: 14px; color: var(--text-s);
  line-height: 1.6; font-style: italic;
  margin-bottom: 10px;
}
.panel-quote .q-author {
  display: flex; align-items: center; gap: 10px;
}
.q-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.q-name { font-size: 13px; font-weight: 600; color: #fff; }
.q-title { font-size: 12px; color: var(--text-m); }

/* =====================
   RIGHT PANEL — Form
===================== */
.auth-form-side {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 48px;
  background: #080d1e;
  position: relative;
  overflow-y: auto;
}

/* floating orb in form side */
.auth-form-side::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,110,247,0.1) 0%, transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
  filter: blur(40px);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-m);
  font-weight: 500;
  margin-bottom: 40px;
  transition: color .2s;
}
.back-link:hover { color: #fff; }
.back-link i { font-size: 12px; }

/* Form heading */
.form-head { margin-bottom: 32px; }
.form-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px; font-weight: 800; color: #fff;
  margin-bottom: 8px; letter-spacing: -0.3px;
}
.form-head p { font-size: 14px; color: var(--text-m); line-height: 1.6; }

/* Input group */
.input-group {
  width: 100%;
  position: relative;
  margin-bottom: 16px;
}
.input-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-s); margin-bottom: 7px;
}
.input-icon {
  position: absolute;
  left: 14px; bottom: 14px;
  color: var(--text-m); font-size: 15px;
  pointer-events: none;
}
.input-group input {
  width: 100%;
  padding: 13px 42px 13px 40px;
  background: var(--input-bg);
  border: 1px solid var(--input-bd);
  border-radius: 12px;
  font-size: 14px; color: #fff;
  font-family: 'Inter', sans-serif;
  transition: border-color .25s, box-shadow .25s, background .25s;
  outline: none;
}
.input-group input::placeholder { color: rgba(255,255,255,0.28); }
.input-group input:focus {
  border-color: var(--border-act);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.15);
}

/* Password toggle */
.togglePassword {
  position: absolute;
  right: 14px; bottom: 14px;
  cursor: pointer; font-size: 15px; color: var(--text-m);
  transition: color .2s;
}
.togglePassword:hover { color: var(--text); }

/* Primary button */
.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 8px 28px rgba(79,110,247,0.4);
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(79,110,247,0.55);
}
.auth-btn:active { transform: translateY(0); }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}
.auth-divider span { font-size: 12px; color: var(--text-m); font-weight: 500; white-space: nowrap; }

/* Google button */
.google-btn {
  width: 100%;
  padding: 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-s);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif;
}
.google-btn img { width: 18px; height: 18px; }
.google-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-1px);
}

/* Auth switch link */
.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 14px; color: var(--text-m);
}
.auth-switch a {
  color: var(--brand-l); font-weight: 600;
  transition: color .2s;
}
.auth-switch a:hover { color: var(--accent); }

/* Error message */
.error-msg {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}

/* Loader */
.loader {
  width: 28px; height: 28px;
  margin: 14px auto 0;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--brand-l);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Password strength bar */
.strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin-top: 8px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width .4s, background .4s;
}

/* Trust badges */
.trust-badges {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 26px;
}
.tbadge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px; color: var(--text-m); font-weight: 500;
}
.tbadge i { color: var(--accent); font-size: 11px; }

/* Admin badge */
.admin-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247,201,72,0.1);
  border: 1px solid rgba(247,201,72,0.3);
  color: #f7c948;
  font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 20px;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .auth-panel { display: none; }
  .auth-form-side { width: 100%; padding: 40px 30px; }
  body { justify-content: center; }
}

@media (max-width: 500px) {
  .auth-form-side { padding: 32px 20px; }
  .panel-stats { flex-direction: column; gap: 10px; }
  .pstat + .pstat { margin-left: 0; }
}
