/* ============================================================
   auth.css — VidEQS Login & Register
   Modern split-panel layout, responsive
============================================================ */

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

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

:root {
  --accent:      #6366f1;
  --accent-d:    #4f46e5;
  --accent-l:    #eef2ff;
  --dark:        #0f172a;
  --dark2:       #1e293b;
  --slate:       #334155;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --red:         #ef4444;
  --red-l:       #fef2f2;
  --green:       #10b981;
  --green-l:     #ecfdf5;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-display:'Plus Jakarta Sans', 'Inter', sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  -webkit-font-smoothing: antialiased;
}

/* ── AUTH WRAPPER ── */
.auth-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── LEFT PANEL ── */
.auth-left {
  flex: 1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(99,102,241,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(99,102,241,.12) 0%, transparent 55%),
    linear-gradient(160deg, #0c1225 0%, #0f172a 55%, #0d1832 100%);
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Decorative grid */
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: #fff; text-decoration: none;
  position: relative; z-index: 2;
}
.brand-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99,102,241,.45);
}

/* Hero */
.hero {
  margin-top: auto; margin-bottom: 48px;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(99,102,241,.14);
  border: 1px solid rgba(99,102,241,.28);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px; font-weight: 600;
  color: #a5b4fc; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  color: #fff; line-height: 1.2;
  margin-bottom: 16px; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: #a5b4fc; }
.hero p { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 400px; }

/* Feature list */
.feats { display: flex; flex-direction: column; gap: 11px; position: relative; z-index: 2; }
.feat  { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.68); font-size: 14px; }
.feat-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(99,102,241,.13);
  border: 1px solid rgba(99,102,241,.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #a5b4fc;
}

/* Orbs */
.orbs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.orb  { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.3), transparent 70%); }
.orb1 { width: 500px; height: 500px; top: -200px; right: -180px; }
.orb2 { width: 300px; height: 300px; bottom: 40px; right: 60px; opacity: .5; }

/* ── RIGHT PANEL ── */
.auth-right {
  width: 490px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 44px;
  position: relative;
}
.auth-right::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #818cf8, var(--accent));
}

.auth-card { width: 100%; max-width: 390px; }

.auth-card-header { margin-bottom: 28px; }
.auth-card-header h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  color: var(--dark); margin-bottom: 8px; letter-spacing: -.02em;
}
.sub { font-size: 13.5px; color: var(--muted); }
.sub a { color: var(--accent); text-decoration: none; font-weight: 600; }
.sub a:hover { text-decoration: underline; }

/* ── ALERTS ── */
.alert {
  padding: 12px 15px; border-radius: 10px;
  font-size: 13.5px; margin-bottom: 20px; font-weight: 500;
  display: flex; align-items: flex-start; gap: 9px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
}
.alert-error   { background: var(--red-l); color: var(--red); border-color: #fecaca; border-left-color: var(--red); }
.alert-success { background: var(--green-l); color: #065f46; border-color: #a7f3d0; border-left-color: var(--green); }

/* ── FORM GROUPS ── */
.fg { margin-bottom: 18px; }
.fg label { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 7px; }
.fg label .req { color: var(--red); margin-left: 2px; }

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px; font-family: var(--font-sans);
  color: var(--dark); background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.fg input::placeholder { color: #b0bec8; }

.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* Password toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 4px; border-radius: 6px;
  transition: color .12s, background .12s;
  display: flex; align-items: center; justify-content: center;
}
.pw-eye:hover { color: var(--dark); background: var(--bg); }

/* ── SUBMIT BUTTON ── */
.btn-submit {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-d) 100%);
  color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer; margin-top: 8px;
  transition: all .15s;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
  letter-spacing: .01em;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(99,102,241,.45); }
.btn-submit:active { transform: scale(.98); box-shadow: none; }

/* ── DIVIDER ── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 40px 32px; }
  .auth-right::before { display: none; }
}
@media (max-width: 480px) {
  .auth-right { padding: 32px 20px; }
  .fg-row { grid-template-columns: 1fr; }
  .auth-card-header h2 { font-size: 22px; }
}
