/* ============================================
   CRI — Page Connexion · Identité RodForm
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Calibri', 'Segoe UI', 'Nunito', Arial, sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Carte ── */
form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.09), 0 1px 3px rgba(15, 23, 42, 0.05);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── En-tête ── */
.header {
  background: #131d2e;
  padding: 36px 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #253451 0%, #4a7ab5 60%, transparent 100%);
}

.logo { height: 50px; width: auto; }

.header h2 {
  color: #f8fafc;
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Corps ── */
section {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section > div { display: flex; flex-direction: column; }

/* ── Labels ── */
section > div > span,
section > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.champ { position: relative; }

/* ── Inputs ── */
.input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder { color: #94a3b8; }

.input:focus {
  border-color: #253451;
  box-shadow: 0 0 0 3px rgba(37, 52, 81, 0.12);
  background: #ffffff;
}

/* ── Mot de passe oublié ── */
#url {
  color: #253451;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s;
}

#url:hover { color: #1a2640; text-decoration: underline; }

/* ── Bouton submit ── */
.button {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button input[type="submit"] {
  width: 100%;
  padding: 11px;
  background: linear-gradient(45deg, #253451 0%, #4a7ab5 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
}

.button input[type="submit"]:hover {
  background: linear-gradient(45deg, #1a2640 0%, #3a62a0 100%);
  box-shadow: 0 8px 16px rgba(37, 52, 81, 0.28);
}

.button input[type="submit"]:active { transform: scale(0.98); }

/* ── Erreur ── */
p[style*="color: red"] {
  font-size: 13px !important;
  padding: 10px 13px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.20);
  border-radius: 6px;
  color: #dc2626 !important;
  margin-top: -8px;
  text-align: left !important;
  padding-bottom: 10px !important;
}

@media (max-width: 480px) {
  body { padding: 16px; }
  form { border-radius: 12px; }
  .header { padding: 28px 24px 24px; }
  section { padding: 24px; }
}
