/* ============================================================
   CryptoOutsiders — Auth Pages Styles
   ============================================================ */

.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  position: relative; overflow: hidden;
}
.auth-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 30%, rgba(26,111,255,0.12), transparent),
              radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,212,255,0.07), transparent);
}
.auth-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,111,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,111,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%; max-width: 480px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(26,111,255,0.1);
  animation: fade-in 0.5s ease;
}
.auth-card-wide { max-width: 560px; }

.auth-header { text-align: center; margin-bottom: 36px; }
.auth-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 28px;
}
.auth-logo-icon { font-size: 28px; color: var(--primary); filter: drop-shadow(0 0 10px var(--primary-glow)); }
.auth-logo-text { font-size: 22px; font-weight: 800; }
.auth-logo-text span { color: var(--primary); }

.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-subtitle { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.auth-footer-link {
  text-align: center; margin-top: 24px;
  font-size: 14px; color: var(--text-muted);
}
.auth-footer-link a { color: var(--primary); font-weight: 600; }
.auth-footer-link a:hover { color: var(--primary-light); }

/* ── Password Strength Meter ─────────────────────────────── */
.password-strength { margin-top: 8px; }
.strength-bar {
  height: 4px; background: var(--border);
  border-radius: 2px; overflow: hidden; margin-bottom: 6px;
}
.strength-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.4s ease, background 0.4s ease;
  width: 0%;
}
.strength-fill.weak   { width: 25%; background: var(--danger); }
.strength-fill.fair   { width: 50%; background: var(--warning); }
.strength-fill.good   { width: 75%; background: #00aaff; }
.strength-fill.strong { width: 100%; background: var(--success); }
.strength-label { font-size: 12px; color: var(--text-muted); }
.strength-label.weak   { color: var(--danger); }
.strength-label.fair   { color: var(--warning); }
.strength-label.good   { color: #00aaff; }
.strength-label.strong { color: var(--success); }

/* ── Verify Email Page ───────────────────────────────────── */
.verify-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,111,255,0.15), rgba(0,212,255,0.1));
  border: 1px solid rgba(26,111,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 24px;
  animation: pulse-glow 2s ease infinite;
}
.verify-icon.success {
  background: var(--success-bg);
  border-color: rgba(0,232,122,0.3);
  animation: none;
}
.verify-icon.error {
  background: var(--danger-bg);
  border-color: rgba(255,71,87,0.3);
  animation: none;
}

/* ── Terms checkbox ──────────────────────────────────────── */
.checkbox-group {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px; margin-top: 4px;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  cursor: pointer; accent-color: var(--primary);
}
.checkbox-label { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.checkbox-label a { color: var(--primary); }

/* ── OTP / Code input ────────────────────────────────────── */
.code-input-row { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.code-input {
  width: 50px; height: 56px;
  text-align: center; font-size: 22px; font-weight: 700;
  background: var(--bg-input); border: 2px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  transition: all var(--transition); outline: none;
}
.code-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* ── Submit area ─────────────────────────────────────────── */
.auth-submit { margin-top: 8px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-name-row { grid-template-columns: 1fr; gap: 0; }
}
