/* ============================================================
   BestlifeBots – Auth Pages (Login / Register)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
  --brand-400:  #7c5cfc;
  --brand-500:  #6438f5;
  --brand-600:  #5227d4;
  --accent-400: #22d3ee;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --gray-900:   #0f172a;
  --gray-950:   #020617;
  --success:    #10b981;
  --danger:     #ef4444;
  --border:     #2d3f55;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  min-height: 100vh;
  background: var(--gray-950);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}

/* Animated background orbs */
.auth-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .2;
  animation: orbFloat 8s ease-in-out infinite;
}
.auth-orb-1 { width: 600px; height: 600px; background: var(--brand-500); top: -150px; left: -150px; animation-delay: 0s; }
.auth-orb-2 { width: 400px; height: 400px; background: var(--accent-400); bottom: -100px; right: -80px; animation-delay: -3s; }
.auth-orb-3 { width: 300px; height: 300px; background: #8b5cf6; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -5s; }
@keyframes orbFloat { 0%,100%{transform:scale(1) translate(0,0);} 33%{transform:scale(1.05) translate(10px,-10px);} 66%{transform:scale(.97) translate(-8px,8px);} }

/* Card */
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(100,56,245,.15);
  padding: 40px 36px;
}

/* Brand */
.auth-brand {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 0 30px rgba(100,56,245,.4);
}
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}
.auth-title span { color: var(--brand-400); }
.auth-subtitle { font-size: .875rem; color: rgba(255,255,255,.4); }

/* Tabs */
.auth-tabs {
  display: flex;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1; text-align: center;
  padding: 9px;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: all .2s;
}
.auth-tab.active {
  background: rgba(100,56,245,.3);
  color: #fff;
  border: 1px solid rgba(100,56,245,.4);
  box-shadow: 0 2px 8px rgba(100,56,245,.3);
}
.auth-tab:hover:not(.active) { color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); }

/* Form */
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,.35);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 11px;
  font-size: .9rem;
  font-family: var(--font-body);
  color: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(100,56,245,.2);
}
.auth-input::placeholder { color: rgba(255,255,255,.2); }

/* Password toggle wrapper */
.input-wrap { position: relative; }
.input-wrap .auth-input { padding-right: 46px; }
.input-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,.3);
  cursor: pointer; font-size: .9rem;
  transition: color .15s;
}
.input-toggle:hover { color: rgba(255,255,255,.7); }

/* Submit button */
.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--brand-500);
  color: #fff;
  border: 2px solid var(--brand-500);
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 6px;
  box-shadow: 0 0 30px rgba(100,56,245,.3);
}
.auth-submit:hover {
  background: #7c5cfc; border-color: #7c5cfc;
  box-shadow: 0 0 45px rgba(100,56,245,.5);
  transform: translateY(-1px);
}
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Alert */
.auth-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: .85rem;
  margin-bottom: 20px;
  border: 1px solid;
}
.auth-alert-error  { background: rgba(239,68,68,.12);  color: #fca5a5; border-color: rgba(239,68,68,.3); }
.auth-alert-success{ background: rgba(16,185,129,.12); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
.auth-alert i { flex-shrink: 0; margin-top: 1px; }

/* Footer link */
.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: .875rem;
  color: rgba(255,255,255,.35);
}
.auth-footer a { color: var(--brand-400); font-weight: 600; transition: color .15s; }
.auth-footer a:hover { color: #a5b4fc; }

/* Password strength */
.password-strength { margin-top: 8px; }
.strength-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 4px; transition: width .3s, background .3s; }
.strength-text { font-size: .7rem; color: rgba(255,255,255,.35); margin-top: 5px; }

/* Free plan note */
.auth-free-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 18px;
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}
.auth-free-note i { color: var(--accent-400); font-size: .75rem; }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  color: rgba(255,255,255,.2);
  font-size: .75rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; }
  body { padding: 16px; align-items: flex-start; padding-top: 40px; }
}
