:root {
  --primary: #0f61a8;
  --primary-light: #5b9fd9;
  --primary-dark: #073d7a;
  --secondary: #00b4a6;
  --accent: #f57c00;
  --success: #059669;
  --danger: #dc2626;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .25s ease-out;
  --font: 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --surface: #ffffff;
  --border: rgba(0,0,0,.08);
  --border2: rgba(0,0,0,.12);
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
}

[data-theme="dark"] {
  --bg: #090a0f;
  --bg2: #111219;
  --bg3: #191b26;
  --surface: #12131c;
  --border: rgba(255,255,255,.07);
  --border2: rgba(124,58,237,.28);
  --text: #f3f4f6;
  --text2: #cbd5e1;
  --text3: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

a {
  text-decoration: none;
}

/* Gradient Text Utility */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-cyan {
  color: #38bdf8 !important;
}

/* ═══ BACKGROUND DECORATION FX ═══ */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 650px;
  height: 650px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(15, 97, 168, 0.25) 0%, transparent 70%);
  filter: blur(110px);
}

.shape-2 {
  width: 600px;
  height: 600px;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, transparent 70%);
  filter: blur(110px);
}

[data-theme="light"] .shape-1 {
  background: radial-gradient(circle, rgba(15, 97, 168, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .shape-2 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

/* ═══ CONTAINER & WRAPPER ═══ */
.auth-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.auth-container {
  width: 100%;
  max-width: 460px;
  animation: slideUp .5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Header Brand ─── */
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(18, 19, 28, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.logo-brand:hover .logo-mark {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.5);
}

.logo-text {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.5px;
}

/* ─── Auth Card ─── */
.auth-card {
  background: rgba(18, 19, 28, 0.65);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  animation: slideUp .5s ease-out .1s backwards;
}

[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 97, 168, 0.18) !important;
  box-shadow: 0 20px 45px rgba(15, 97, 168, 0.09) !important;
}

.auth-card-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.auth-card-subtitle {
  font-size: 14px;
  color: #94a3b8;
}

[data-theme="light"] .auth-card-subtitle {
  color: #64748b !important;
}

.auth-footer-text {
  color: #cbd5e1;
}

[data-theme="light"] .auth-footer-text {
  color: #64748b !important;
}

/* ─── Forms & Inputs ─── */
.form-group, .mb-3 {
  margin-bottom: 20px !important;
}

.form-label, label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #e2e8f0;
  margin-bottom: 8px;
}

[data-theme="light"] .form-label,
[data-theme="light"] label {
  color: #1e293b !important;
}

.form-input, .form-control, .form-select, input.form-control {
  width: 100%;
  background: rgba(11, 12, 18, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-family: var(--font);
  font-size: 14px !important;
  color: #f1f5f9 !important;
  transition: all 0.3s ease !important;
  outline: none !important;
}

.form-input::placeholder, .form-control::placeholder {
  color: #64748b !important;
}

.form-input:focus, .form-control:focus, .form-select:focus, input.form-control:focus {
  border-color: #38bdf8 !important;
  background: rgba(11, 12, 18, 0.85) !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15), 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-control,
[data-theme="light"] .form-select,
[data-theme="light"] input.form-control {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-control:focus,
[data-theme="light"] input.form-control:focus {
  border-color: #0f61a8 !important;
  box-shadow: 0 0 0 4px rgba(15, 97, 168, 0.15) !important;
}

/* ─── Buttons ─── */
.btn-submit, .btn-primary, button[type="submit"] {
  width: 100%;
  padding: 13px 24px !important;
  background: linear-gradient(135deg, #0f61a8 0%, #7c3aed 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 10px 25px rgba(15, 97, 168, 0.35) !important;
}

.btn-submit:hover, .btn-primary:hover, button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 35px rgba(124, 58, 237, 0.5) !important;
  color: #ffffff !important;
}

/* ─── Controls Bar / Theme Switcher ─── */
.controls-bar {
  position: fixed;
  top: 20px;
  right: 24px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.control-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 19, 28, 0.75);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 30px;
  padding: 3px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease;
}

[data-theme="light"] .control-pill {
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.control-pill button {
  padding: 5px 12px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.control-pill button:hover {
  color: #f1f5f9;
}

.control-pill button.active {
  background: linear-gradient(135deg, #0f61a8 0%, #7c3aed 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  font-weight: 700;
}

/* Social Buttons */
.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-facebook {
  color: #1877f2 !important;
  border-color: rgba(24, 119, 242, 0.35) !important;
  background: rgba(24, 119, 242, 0.12) !important;
}
.btn-facebook:hover {
  background: #1877f2 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45) !important;
  transform: translateY(-3px);
}

.btn-google-plus {
  color: #ea4335 !important;
  border-color: rgba(234, 67, 53, 0.35) !important;
  background: rgba(234, 67, 53, 0.12) !important;
}
.btn-google-plus:hover {
  background: #ea4335 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(234, 67, 53, 0.45) !important;
  transform: translateY(-3px);
}

.btn-twitter {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  background: rgba(56, 189, 248, 0.35) !important;
}
.btn-twitter:hover {
  background: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45) !important;
  transform: translateY(-3px);
}


.auth-container.auth-container-wide {
  max-width: 820px !important;
}

@media (max-width: 768px) {
  .auth-container.auth-container-wide {
    max-width: 100% !important;
  }
}