/* =========================
   Reset & base
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
  min-height: 100vh;
  margin: 0;
}

/* =========================
   Layout
   ========================= */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page {
  width: 100%;
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px;
}

.hero {
  margin-bottom: 16px;
}

.muted {
  color: #94a3b8;
}

.accent {
  color: #a5b4fc;
}

/* =========================
   Navbar
   ========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #f9fafb;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #cbd5e1;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(51, 65, 85, 0.35);
  color: #e2e8f0;
}

.nav-link.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
  color: #e5e7eb;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(2, 6, 23, 0.6);
  color: #e2e8f0;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* =========================
   Containers
   ========================= */
.container {
  background: #020617;
  padding: 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Une "card" est un container dans les pages */
.card {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link .card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card-link:hover .card {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.55);
}

/* =========================
   Titres
   ========================= */
h1,
h2 {
  margin-bottom: 12px;
  color: #f9fafb;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

/* =========================
   Formulaires
   ========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input,
textarea {
  background: #020617;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  color: #e5e7eb;
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #6366f1;
}

/* =========================
   Boutons
   ========================= */
button {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================
   Messages & liens
   ========================= */
.error {
  color: #f87171;
  text-align: center;
  margin-bottom: 12px;
}

a {
  color: #93c5fd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn-ghost {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(2, 6, 23, 0.6);
  color: #cbd5e1;
  text-decoration: none;
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: rgba(99, 102, 241, 0.55);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.label {
  font-size: 13px;
  color: #cbd5e1;
}

.cta {
  display: inline-block;
  margin-top: 10px;
  color: #a5b4fc;
  font-weight: 600;
}

.inline-code {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(2, 6, 23, 0.8);
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

option, optgroup, select{
  background-color: rgb(2, 6, 23);
  color: white;
}

select {
  border-radius: 20px;
}