/* ============================================================
   CryptoVault - Auth Pages CSS
   ============================================================ */
:root {
  --bg:      #0a0e1a;
  --card:    #111827;
  --border:  #1f2937;
  --accent:  #f59e0b;
  --accent2: #10b981;
  --text:    #e5e7eb;
  --muted:   #9ca3af;
  --danger:  #ef4444;
  --warning: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
}

.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 60%, rgba(245,158,11,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(16,185,129,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(99,102,241,0.04) 0%, transparent 55%);
  position: relative;
  overflow: hidden;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}

/* Brand */
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em;
}
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #000;
}

/* Title */
.auth-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; text-align: center; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 0.88rem; text-align: center; margin-bottom: 1.5rem; }

/* Alerts */
.auth-alert {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
  line-height: 1.5;
}
.auth-alert.danger  { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.auth-alert.warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.auth-alert.success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }

/* Form */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.82rem; font-weight: 500;
  margin-bottom: 0.4rem;
}
.input-wrap { position: relative; }
.input-wrap > .bi:first-child {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.95rem; pointer-events: none;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem 2.8rem;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
  background: rgba(255,255,255,0.06);
}
.form-input::placeholder { color: #4b5563; }

.eye-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px;
  font-size: 1rem;
}
.eye-toggle:hover { color: var(--text); }

/* Strength bar */
.strength-bar {
  height: 3px; background: #1f2937; border-radius: 99px; margin-top: 6px; overflow: hidden;
}
.strength-fill { height: 100%; width: 0; border-radius: 99px; transition: width 0.3s, background 0.3s; }

/* Checkbox */
.terms-check {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 1.2rem;
}
.terms-check input { margin-top: 2px; accent-color: var(--accent); }
.terms-check a { color: var(--accent); text-decoration: none; }

.remember-row { margin-bottom: 1.2rem; }
.check-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.check-label input { accent-color: var(--accent); }

.forgot-link { color: var(--accent); text-decoration: none; font-size: 0.82rem; }
.forgot-link:hover { text-decoration: underline; }

/* Button */
.btn-auth {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent), #d97706);
  border: none; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem; color: #000;
  cursor: pointer; letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.1s;
  display: block; text-align: center; text-decoration: none;
}
.btn-auth:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-auth:active { transform: translateY(0); }

/* Footer */
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.88rem; color: var(--muted); }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Success state */
.success-state { text-align: center; padding: 1rem 0; }
.success-icon { font-size: 3.5rem; color: var(--accent2); margin-bottom: 1rem; }
.success-state h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.success-state p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 480px) {
  .auth-card { padding: 1.75rem 1.25rem; border-radius: 16px; }
  .auth-title { font-size: 1.3rem; }
}
