/* ============================================================
   File: dashboard/styles.css
   Purpose: Global Styles (Login Page & Theme Colors)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #05050A;
  --bg-secondary: #0A0A12;
  --bg-card: #12121C;
  --bg-hover: #1A1A28;
  --text-primary: #FFFFFF;
  --text-secondary: #8A8A9E;
  --primary: #7C3AED;
  --primary-glow: rgba(124, 58, 237, 0.4);
  --gradient: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);
  --success: #10B981;
  --danger: #EF4444;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg-primary: #FAFAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-hover: #F4F4F8;
  --text-primary: #0A0A0F;
  --text-secondary: #6B7280;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --success: #059669;
  color-scheme: light;
}

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

body { 
  font-family: 'Inter', sans-serif; 
  background-color: var(--bg-primary); 
  color: var(--text-primary); 
  -webkit-font-smoothing: antialiased; 
  transition: background-color 0.3s, color 0.3s; 
}

/* ================= LOGIN PAGE STYLES ================= */
.login-card {
  background: var(--bg-card);
  padding: 48px;
  border-radius: 24px;
  width: 420px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--primary-glow);
}

h2 {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 24px;
}

.subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.options-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.options-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.options-row a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-text a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.error-box {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  text-align: center;
}