/* css/auth.css — DevKit Auth Page Styles */

body {
  background: var(--void);
  min-height: 100vh;
}

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

.auth-panel-left {
  flex: 6;
  background: var(--deep);
  position: relative;
  padding: var(--sp16) var(--sp10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,255,178,0.06) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(124,106,255,0.07) 0%, transparent 50%);
}

/* Animated grid on auth left panel */
.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,178,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,178,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
}

.auth-panel-right {
  flex: 4;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp12) var(--sp10);
  border-left: 1px solid var(--border);
  z-index: 10;
  position: relative;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  position: absolute;
  top: var(--sp6);
  left: var(--sp8);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--sp2);
}
.auth-logo::before {
  content: 'A';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--acid), var(--plasma));
  border-radius: var(--r2);
  font-size: 14px;
  font-weight: 800;
  color: #000;
}
.auth-logo span { color: var(--acid); }
.auth-logo:hover { opacity: 0.9; text-decoration: none; }

.auth-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--white);
  max-width: 520px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  z-index: 2;
}

.auth-headline .acid { color: var(--acid); }

/* ── Form Header ── */
.auth-form-header {
  margin-bottom: var(--sp8);
  text-align: center;
}
.auth-form-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-top: 0;
  margin-bottom: var(--sp2);
}
.auth-form-header p { color: var(--muted); font-size: 14px; margin: 0; }

/* ── Password Toggle ── */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--t-mid);
  font-size: 15px;
  user-select: none;
}
.password-toggle:hover { color: var(--acid); }

/* ── Auth Options ── */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp5);
  font-size: 13px;
}

/* ── Full Width Button ── */
.btn-full { width: 100%; justify-content: center; }

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

/* Keep old .divider class working for auth pages */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--sp5) 0;
  color: var(--muted);
  font-size: 12px;
  gap: var(--sp3);
}
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Social Buttons ── */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp3);
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--border);
  padding: var(--sp3) var(--sp4);
  border-radius: var(--r2);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-mid) var(--t-ease);
  margin-bottom: var(--sp3);
}
.social-btn img { width: 18px; height: 18px; }
.social-btn:hover { border-color: var(--border-glow); background: var(--border-glow); color: var(--bright); }
.social-btn.google:hover { border-color: #EA4335; background: rgba(234,67,53,0.12); color: #EA4335; }
.social-btn.github:hover { border-color: var(--muted); background: rgba(255,255,255,0.06); color: var(--bright); }
.social-btn.google:hover img { filter: none; }
.social-btn.github:hover img { filter: brightness(0) invert(1); }

/* ── Auth Footer ── */
.auth-footer {
  text-align: center;
  margin-top: var(--sp6);
  font-size: 13px;
  color: var(--muted);
}

/* ── Progress Steps (Register) ── */
.progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--sp8);
  gap: var(--sp2);
}
.progress-step {
  width: 40px; height: 3px;
  background: var(--border);
  border-radius: 100px;
  transition: background var(--t-mid);
}
.progress-step.active { background: var(--acid); box-shadow: 0 0 8px var(--acid); }

/* ── Password Strength ── */
.password-strength { display: flex; gap: 4px; margin-top: var(--sp2); }
.strength-bar {
  height: 3px;
  flex: 1;
  background: var(--border);
  border-radius: 100px;
  transition: background var(--t-mid);
}

/* Register layout (inverted) */
.register-panel-right {
  flex: 6;
  background: var(--deep);
  position: relative;
  padding: var(--sp16) var(--sp10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(0,255,178,0.06) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(124,106,255,0.07) 0%, transparent 50%);
}
.register-panel-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,178,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,178,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
}
.register-panel-left {
  flex: 4;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp12) var(--sp10);
  border-right: 1px solid var(--border);
  z-index: 10;
}

/* Step Content */
.step-content { display: none; animation: fadeSlideUp 0.3s ease-in; }
.step-content.active { display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth-split-layout { flex-direction: column; align-items: center; padding: var(--sp6); }
  .auth-panel-left, .register-panel-right { display: none; }
  .auth-panel-right, .register-panel-left {
    width: 100%; max-width: 460px;
    border-radius: var(--r4);
    padding: var(--sp8) var(--sp6);
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow-lg);
  }
  .auth-logo { position: static; margin-bottom: var(--sp6); }
}