/* ══════════════════════════════════════════════
   AUTH PAGES — Add to bottom of tradelab.css
   Covers: login.php, register.php, layouts/auth.php
══════════════════════════════════════════════ */

/* ── Body ── */
.auth-body {
  min-height: 100vh;
  background: #eff6ff;
  margin: 0;
  padding: 0;
}

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

/* ── LEFT PANEL ── */
.auth-left {
  width: 45%;
  background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.auth-left-inner {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

/* Logo on left */
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 52px;
}

.auth-logo span b { font-weight: 800; }

/* Brand heading */
.auth-brand-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.auth-brand-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin: 0 0 24px;
}

/* Perks list */
.auth-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
}

.auth-perks li svg {
  width: 18px;
  height: 18px;
  color: #86efac;
  flex-shrink: 0;
}

/* Mini result card */
.auth-mini-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
}

.auth-mini-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.auth-mini-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.auth-mini-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.auth-mini-return {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.auth-mini-bar-wrap {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  height: 5px;
  margin-bottom: 10px;
}

.auth-mini-bar-fill {
  height: 5px;
  border-radius: 4px;
  background: #86efac;
}

.auth-mini-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}

.auth-mini-insight {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 7px 10px;
}

.auth-mini-insight svg { color: #fbbf24; flex-shrink: 0; }

/* Stats strip (register page) */
.auth-stats-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 32px;
}

.auth-stat {
  flex: 1;
  text-align: center;
}

.auth-stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.auth-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.auth-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  margin: 0 12px;
}

/* Positive / Negative */
.positive { color: #86efac; }
.negative { color: #fca5a5; }

/* ── RIGHT PANEL ── */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #eff6ff;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(37,99,235,0.08);
}

.auth-card-top {
  margin-bottom: 28px;
}

.auth-card-top h1 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
}

.auth-card-top p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  border: 1.5px solid #dbeafe;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1e3a8a;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}

.btn-google:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #94a3b8;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Alert */
.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.auth-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* ── FORM ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-link {
  font-size: 12px;
  font-weight: 400;
  color: #2563eb;
  text-decoration: none;
}

.label-link:hover { text-decoration: underline; }

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e3a8a;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.form-group input::placeholder { color: #94a3b8; }

/* Password wrap with eye button */
.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 42px !important;
}

.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.eye-btn:hover { color: #2563eb; }
.eye-btn svg { width: 16px; height: 16px; }

/* Password strength */
.pw-strength {
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.pw-strength-bar {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width .3s, background .3s;
}

.pw-strength-label {
  font-size: 11px;
  margin-top: 4px;
  font-weight: 500;
  min-height: 16px;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-check label {
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  line-height: 1.5;
}

.form-check label a {
  color: #2563eb;
  text-decoration: none;
}

.form-check label a:hover { text-decoration: underline; }

/* Primary Button */
.btn-auth-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 4px;
}

.btn-auth-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.28);
}

.btn-auth-primary:active { transform: translateY(0); }

/* Switch link */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin: 20px 0 0;
}

.auth-switch a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { padding: 32px 20px; }
  .auth-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
