/* =========================================== */
/* 🔵 VARIABLES / THEME GLOBAL */
/* =========================================== */
:root {
  --bg1: #081120;
  --bg2: #0d1830;
  --card: #121f3d;
  --accent: #2a64f6;
  --accent-hover: #1d4fe0;
  --success: #00d27a;
  --error: #e53935;
  --muted: #9fb0d9;
  --ink: #f0f4ff;
  --radius: 14px;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
  --font-main: "Inter", "Poppins", sans-serif;
}

/* =========================================== */
/* 🔵 GLOBAL */
/* =========================================== */
body {
  margin: 0;
  font-family: var(--font-main);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--ink);
}

/* =========================================== */
/* 🔵 LOGIN PAGE */
/* =========================================== */
body.login-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #0e1835, #050a1a);
}

/* CARD LOGIN PREMIUM */
.login-card {
  background: var(--card);
  padding: 3rem 2.5rem;
  width: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

/* TITRE LOGIN */
.login-card h1 {
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* SOUS-TITRE LOGIN */
.login-card h2 {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

/* INPUT LOGIN */
.login-card input {
  background: #101b33;
  border: 1px solid #233458;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  width: 100%;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 1rem;
}

.login-card input:focus {
  border-color: var(--accent);
  outline: none;
}

/* BOUTON PREMIUM */
button.submit {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #2a64f6, #00d27a);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button.submit:hover {
  transform: translateY(-2px);
}

/* =========================================== */
/* 🔵 LOGO PREMIUM */
/* =========================================== */
.logo img {
  width: 95px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 0 8px rgba(42, 100, 246, 0.7));
}

/* =========================================== */
/* 🔵 TABLES (Dashboard) */
/* =========================================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1f2a4a;
}

th {
  background: #16274b;
  color: var(--muted);
}

tr:hover {
  background: #182b55;
}

/* =========================================== */
/* 🔵 FOOTER */
/* =========================================== */
footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================== */
/* 🔵 ANIMATION */
/* =========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}