/* =============================================
   LOGIN.CSS
   Page de connexion admin — formulaire centre
   Depend de : ../style.css
============================================= */

/* ── Reset body pour page centree ── */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  padding: 24px;
}

/* ── Conteneur principal ── */
.login-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── Logo ── */
.login-brand {
  text-align: center;
}

.login-logo {
  font-family: 'SnotmasterV', 'EB Garamond', Georgia, serif;
  font-size: 2.4rem;
  color: var(--rouge);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: block;
  line-height: 1;
}

.login-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #aaa;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ── Carte ── */
.login-card {
  width: 100%;
  background: var(--blanc);
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.1);
  padding: 36px 36px 32px;
}

.login-title {
  font-family: 'SnotmasterV', 'EB Garamond', Georgia, serif;
  font-size: 1.8rem;
  color: var(--noir);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.login-desc {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Formulaire ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-group label {
  font-family: 'EB Garamond', serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gris-texte);
}

.login-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  background: var(--blanc);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--noir);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.login-group input:focus {
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

/* Wrapper mot de passe + toggle */
.login-password-wrapper {
  position: relative;
}

.login-password-wrapper input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  color: #aaa;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--rouge);
}

/* Champ code A2F : grand et centre */
.login-code-input {
  font-size: 2rem !important;
  text-align: center;
  letter-spacing: 0.3em;
  font-family: 'EB Garamond', serif !important;
  padding: 14px !important;
}

/* Case "se souvenir de moi" */
.login-remember {
  margin-top: -4px;
}

/* Bouton submit */
.login-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  font-size: 1.05rem;
  padding: 13px;
}

/* ── Feedbacks ── */
.form-feedback {
  padding: 11px 14px;
  border-radius: 6px;
  font-family: 'EB Garamond', serif;
  font-size: 0.97rem;
  margin-bottom: 18px;
}

.form-feedback--succes {
  background: rgba(0, 128, 0, 0.08);
  border: 1px solid rgba(0, 128, 0, 0.25);
  color: #1a7a1a;
}

.form-feedback--erreur {
  background: rgba(139, 0, 0, 0.07);
  border: 1px solid rgba(139, 0, 0, 0.2);
  color: var(--rouge);
}

.form-feedback--info {
  background: rgba(0, 90, 180, 0.06);
  border: 1px solid rgba(0, 90, 180, 0.18);
  color: #005ab4;
}

/* ── Bouton renvoyer ── */
.login-renvoyer-form {
  margin-top: 16px;
  text-align: center;
}

.login-renvoyer-btn {
  background: none;
  border: none;
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  color: #aaa;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  padding: 0;
}

.login-renvoyer-btn:hover {
  color: var(--rouge);
}

/* ── Note de bas de page ── */
.login-footer-note {
  font-family: 'EB Garamond', serif;
  font-size: 0.78rem;
  color: #bbb;
  text-align: center;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px 24px;
  }

  .login-code-input {
    font-size: 1.6rem !important;
    letter-spacing: 0.2em;
  }
}
