/* Shared toggle component and the light theme used by EyeGrad pages. */
.theme-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

/* Login page light theme. Other pages can add their own theme-light overrides. */
body.theme-light {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  color: #1e293b;
}

body.theme-light .login-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 1) inset;
}

body.theme-light .login-bg::before { background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%); }
body.theme-light .login-bg::after { background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%); }
body.theme-light .particle { background: rgba(249, 115, 22, 0.2); }
body.theme-light .logo-ring::before { background: linear-gradient(135deg, #fb923c, #fdba74, #fb923c); }
body.theme-light .logo-ring::after { background: #ffffff; }
body.theme-light .system-title { color: #0f172a; }
body.theme-light .system-subtitle { color: #64748b; }

body.theme-light .system-badge {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #ea580c;
}

body.theme-light .system-badge .dot { background: #f97316; }
body.theme-light .divider-line { background: rgba(0, 0, 0, 0.1); }
body.theme-light .divider-text { color: #64748b; }
body.theme-light .form-label { color: #475569; }

body.theme-light .form-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.theme-light .form-input::placeholder { color: #94a3b8; }
body.theme-light .form-input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

body.theme-light .form-input:focus ~ .input-icon,
body.theme-light .input-wrapper:focus-within .input-icon { color: #f97316; }

body.theme-light .input-icon,
body.theme-light .toggle-pw { color: #94a3b8; }
body.theme-light .toggle-pw:hover { color: #475569; }

body.theme-light .btn-login {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

body.theme-light .btn-login:hover { box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); }
body.theme-light .login-footer { border-top: 1px solid rgba(0, 0, 0, 0.08); }
body.theme-light .footer-text,
body.theme-light .footer-version { color: #64748b; }
body.theme-light .footer-logo-img { opacity: 0.8; }
body.theme-light .footer-logo span { color: #475569 !important; }

body.theme-light .theme-toggle-btn {
  background: #ffffff;
  color: #f97316;
  border: 1px solid #e2e8f0;
}
