/* ---------- Bloc global du formulaire ---------- */

.tml.tml-login {
  max-width: 420px;
  margin: 40px 40px;
  padding: 30px 30px 25px;
  background: #ffffff;
  border-top: 4px solid #b9995c;          /* doré */
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
  font-family: inherit;
}

/* Message de déconnexion / alertes */

.tml-login .tml-alerts {
  margin-bottom: 20px;
}

.tml-login .tml-messages {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tml-login .tml-message {
  background: #f8f2e6;                    /* léger beige doré */
  border-left: 4px solid #b9995c;
  padding: 12px 15px;
  font-size: 0.95rem;
  color: #a5173a;
}

/* ---------- Champs & labels ---------- */

.tml-login .tml-field-wrap {
  margin-bottom: 18px;
}

.tml-login .tml-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a5173a;                          /* rouge */
}

/* Champs texte & mot de passe */

.tml-login .tml-field {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #b9995c;               /* doré */
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tml-login .tml-field:focus {
  outline: none;
  border-color: #a5173a;
  box-shadow: 0 0 0 2px rgba(165,23,58,.15);
}

/* ---------- Case “Se souvenir de moi” ---------- */

.tml-login .tml-rememberme-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.tml-login .tml-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #a5173a;                   /* pour navigateurs modernes */
}

/* ---------- Bouton de connexion ---------- */

.tml-login .tml-submit-wrap {
  margin-top: 20px;
}

.tml-login .tml-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  border: none;
  border-radius: 999px;                    /* bouton “pilule” comme le menu */
  padding: 11px 20px;
  background-color: #a5173a;               /* rouge */
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease, box-shadow .1s ease;
}

.tml-login .tml-button:hover,
.tml-login .tml-button:focus {
  background-color: #b9995c;               /* doré au survol */
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transform: translateY(-1px);
}

.tml-login .tml-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- Lien “Mot de passe oublié ?” ---------- */

.tml-login .tml-links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  text-align: center;
}

.tml-login .tml-links a {
  font-size: 0.9rem;
  color: #a5173a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.tml-login .tml-links a:hover {
  color: #b9995c;
  border-color: #b9995c;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .tml.tml-login {
    margin: 20px 20px;
    padding: 20px 15px;
  }
}

.tml .tml-message, .tml .tml-success {
  border-left: 0px !important;
}