:root { font-family: system-ui, Arial, sans-serif; }
* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #0b0f1a;
  color: #e5e7eb;
}

.page { width: 100%; display: grid; place-items: center; padding: 24px; }
.card {
  width: 420px;
  padding: 24px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.card__header { margin-bottom: 12px; }
h1 { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.msg { margin: 8px 0 0; min-height: 20px; font-size: 14px; color: #93c5fd; }

.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: #cbd5e1; }
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #0f172a;
  color: #e5e7eb;
}
input:focus { outline: 2px solid #3b82f6; outline-offset: 2px; }

.btn {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: #3b82f6; /* bleu */
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: #3b82f6; } /* bouton principal bleu */
.btn--danger  { background: #ef4444; }

.links { margin-top: 10px; text-align: center; }
.links a { color: #60a5fa; text-decoration: none; font-size: 14px; }
.links a:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }

details.reset { margin-top: 12px; border-top: 1px solid #1f2937; padding-top: 12px; }
.card__footer { margin-top: 12px; }
.link { color: #60a5fa; text-decoration: none; }
.link:hover { text-decoration: underline; }
