/* Auth pages: /login/ and /register/ */
:root {
  --bg:      #030711;
  --surface: #060D1F;
  --card:    #0A1628;
  --border:  #111F3A;
  --border2: #1A3050;
  --text:    #F0F4FF;
  --muted:   #64748B;
  --muted2:  #8899BB;
  --accent:  #4F8EF7;
  --accent2: #3B6FD4;
  --green:   #10B981;
  --red:     #EF4444;
  --mono:    'IBM Plex Mono', monospace;
  --sans:    'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  line-height: 1.6;
  overflow: hidden;
}

/* ─── Layout ─── */
.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Left panel ─── */
.auth-left {
  flex: 0 0 58%;
  position: relative;
  overflow: hidden;
}

.auth-left-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.45) saturate(.8);
}

.auth-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3,7,17,.65) 0%,
    rgba(6,13,31,.45) 50%,
    rgba(79,142,247,.08) 100%
  );
}

.auth-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-left-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.auth-logo span { line-height: 1.05; }

.auth-logo-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(79,142,247,.45);
  flex-shrink: 0;
}

.auth-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.auth-tagline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
}

.auth-tagline span {
  background: linear-gradient(135deg, var(--accent), #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tagline-sub {
  font-size: 15px;
  color: rgba(240,244,255,.65);
  line-height: 1.6;
  max-width: 380px;
}

.auth-feat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.auth-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(240,244,255,.75);
}

.auth-feat-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(79,142,247,.12);
  border: 1px solid rgba(79,142,247,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.auth-stats-row {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.auth-stat-item { display: flex; flex-direction: column; gap: 2px; }
.auth-stat-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.auth-stat-lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.auth-left-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.auth-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
}

.auth-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,.4);
  animation: pulse-ring 2s ease infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ─── Right panel ─── */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--bg);
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  margin-bottom: 36px;
  transition: color .15s;
}

.auth-back:hover { color: var(--text); }

.auth-form-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(79,142,247,.15), rgba(99,102,241,.15));
  border: 1px solid rgba(79,142,247,.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.auth-form-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.auth-form-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #FCA5A5;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted2);
  margin-bottom: 6px;
  font-family: var(--mono);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(79,142,247,.05);
  box-shadow: 0 0 0 3px rgba(79,142,247,.12);
}

.form-input::placeholder { color: var(--muted); }

.btn-submit {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(79,142,247,.35);
  transition: box-shadow .18s, transform .18s;
}

.btn-submit:hover {
  box-shadow: 0 6px 32px rgba(79,142,247,.55);
  transform: translateY(-1px);
}

.btn-submit:active { transform: translateY(0) scale(.98); }

.auth-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.auth-switch a:hover { text-decoration: underline; }

/* ─── Mobile ─── */
@media (max-width: 800px) {
  body { overflow: auto; }
  .auth-layout { flex-direction: column; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 20px; min-height: 100vh; }
}
