:root {
  --bg: #0f1720;
  --text: #e6eef7;
  --muted: #94a3b8;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(160deg, #0f1720, #1e293b);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.4s ease, color 0.4s ease;
}

body.light {
  --bg: #f8fafc;
  --text: #1e293b;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #9333ea;
  background: linear-gradient(160deg, #f8fafc, #e2e8f0);
  color: var(--text);
}

/* bouton theme */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

/* bouton retour */
a.home-button {
  all: unset;
  position: fixed;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: bold;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
  z-index: 1000;
  cursor: pointer;
}
a.home-button:hover {
  transform: translateY(-2px) scale(1.05);
}

/* card login */
.login-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(6px);
}

.login-card h1 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--muted);
}

.input-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1rem;
}

.input-group input:focus {
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.15);
}

.login-button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}
.login-button:hover {
  transform: translateY(-3px);
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}
