/* ============================================================
   CRYPTO VAULT PRO — AUTH PAGES
   auth.css — Login, Register, Forgot Password styles
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

/* ── Background orbs / glows ── */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.auth-page::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation: orb 8s ease-in-out infinite;
}

.auth-page::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
  animation: orb 10s ease-in-out infinite reverse;
}

/* ── Left branding panel ── */
.auth-branding {
  display: none;
  flex: 0 0 480px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(91,33,182,0.08) 100%);
  border-right: 1px solid var(--border);
  padding: var(--space-12);
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .auth-branding { display: flex; }
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
}

.auth-brand-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-purple);
}

.auth-brand-headline {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}

.auth-brand-headline h1 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-headline h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-brand-headline p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
}

.auth-brand-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.auth-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
}

.auth-stat-value {
  font-size: var(--text-xl);
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.auth-brand-footer {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Right form panel ── */
.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  position: relative;
  z-index: 1;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.5s ease forwards;
}

/* Mobile logo (shown when branding panel is hidden) */
.auth-mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
}

.auth-mobile-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

@media (min-width: 1024px) {
  .auth-mobile-logo { display: none; }
}

/* ── Form card ── */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), transparent);
}

.auth-card-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.auth-card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* ── Password toggle ── */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-control { padding-right: 3rem; }

.password-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.password-toggle:hover { color: var(--primary-light); }

/* ── Divider with text ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Footer links ── */
.auth-footer {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary-light);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.auth-footer a:hover { color: var(--accent); }

/* ── Strength indicator ── */
.password-strength {
  margin-top: var(--space-2);
  display: flex;
  gap: 4px;
  align-items: center;
}

.strength-bar {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: background var(--transition-base);
}

.strength-bar.weak   { background: var(--danger); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }

.strength-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: var(--space-2);
}

/* ── Terms checkbox ── */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-input);
  cursor: pointer;
  appearance: none;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.checkbox-wrapper label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-wrapper label a {
  color: var(--primary-light);
  font-weight: 600;
}

/* ── Error alert ── */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
}

.auth-alert.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.auth-alert.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.auth-alert i { flex-shrink: 0; margin-top: 1px; }

/* ── Floating label input (optional upgrade) ── */
.form-floating {
  position: relative;
}

.form-floating .form-control {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.form-floating label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  top: 0.4rem;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-light);
}
