/* ============================================
   CONNEXION — Thème RESA VVA (clair + élégant)
   ============================================ */

:root {
  /* Palette cohérente avec le reste du site */
  --bg:#f3ede9;           /* fond clair beige */
  --panel:#5f4b47;        /* bloc brun profond */
  --field:#e7ddda;        /* champs doux beige */
  --ink:#2b2524;          /* texte foncé */
  --btn:#bcb1ae;          /* boutons gris-beige */
  --border:#4b403d;
  --radius:14px;
  --shadow-sm:0 6px 18px rgba(0,0,0,.10);
  --shadow-md:0 10px 28px rgba(0,0,0,.14);

  /* accents dorés */
  --gold:#caa45e;
}

/* ==========================
   Layout général
   ========================== */
*{box-sizing:border-box}
html,body{height:100%}

body {
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#f3ede9 0%,#e8ddd8 100%);
  color:var(--ink);
}

/* ==========================
   Carte de connexion
   ========================== */
.login-box {
  background: var(--panel);
  color: #fff;
  padding: 2.2rem 1.8rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 370px;
  transition: box-shadow .25s ease, transform .2s ease;
}
.login-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================
   Titre
   ========================== */
.login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: .3px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* ==========================
   Formulaire
   ========================== */
.login-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: .9rem;
  margin-bottom: .25rem;
  font-weight: 700;
  color: #f8f6f5;
  opacity: .95;
}

.field input {
  padding: .7rem .8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--ink);
  outline: none;
  font-size: .95rem;
  transition: box-shadow .2s ease, border-color .2s ease, transform .08s ease;
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #caa45e44, 0 8px 18px rgba(0,0,0,.12);
}
.field input:active { transform: scale(.997); }

.field input::placeholder { color: #5a514f; opacity: .8; }

/* ==========================
   Bouton principal
   ========================== */
.btn {
  background: linear-gradient(180deg,#cfc5c1 0%,var(--btn) 100%);
  border: 1px solid var(--border);
  color: #1b1716;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  transition: transform .06s ease, box-shadow .2s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.02); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }

/* ==========================
   Messages
   ========================== */
.note {
  font-size: .85rem;
  margin-top: 1rem;
  text-align: center;
  opacity: .9;
  background: linear-gradient(145deg,#fffdfa,#f3ede9);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .8rem;
  box-shadow: var(--shadow-sm);
}
.note.err {
  color: #fff;
  background: linear-gradient(145deg,#6b2b2b,#5a2323);
  border-color: #772727;
}

/* ==========================
   Bouton retour
   ========================== */
.retour {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  font-weight: 600;
  color: #f8f6f5;               /* texte clair */
  padding: .35rem .7rem;        /* plus petit */
  font-size: .9rem;
  border: 1px solid #ffffff33;  /* bordure subtile */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);  /* fond légèrement transparent */
  transition: background .2s ease, color .2s ease, transform .08s ease;
}
.retour:hover {
  background: rgba(255, 255, 255, 0.18);  /* un peu plus visible au survol */
  color: #fff;
}
.retour:active {
  transform: translateY(1px);
}


/* ==========================
   Animation légère d’apparition
   ========================== */
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-box { animation: fadeInCard .4s ease both; }
