/* ============================================================
   CONTENEUR GLOBAL (identique login / mfa / forgot / reset)
   ============================================================ */
.auth-container {
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1rem;
}

/* ============================================================
   IMAGE + FORMULAIRE (structure identique pour tous les écrans)
   ============================================================ */
.auth-image-wrapper {
  position: relative;
  width: 600px;
  height: 600px;
}

/* image de fond */
.auth-image {
  position: absolute;
  inset: 0;
  background: url('/assets/img/accueil_nutrimettic.png') no-repeat center center;
  background-size: auto;
  z-index: 0;
}


/* ============================================================
   FORMULAIRE (transparent, intégré dans l'image)
   ============================================================ */
.auth-form-box {
  position: absolute;
  right: 60px;
  bottom: 160px;
  width: 240px;
  padding: 0.75rem;

  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.auth-form-box form {
  display: flex;
  flex-direction: column;
}

/* labels */
.auth-form-box label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #334155;
  font-size: 0.85rem;
}

/* champs */
.auth-form-box input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.7rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.9rem;
}

/* bouton */
.auth-form-box button {
  width: 100%;
  padding: 0.55rem;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
}

/* ============================================================
   MESSAGES (erreur / info) — ajoutés pour MFA / reset / forgot
   ============================================================ */
.auth-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fee2e2;
  color: #b91c1c;
  border-left: 4px solid #dc2626;
  border-radius: 4px;
  width: 300px;
  text-align: left;
  font-size: 0.9rem;
}

.auth-info {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  width: 300px;
  text-align: left;
  font-size: 0.9rem;
}

/* ============================================================
   LIENS (ex: renvoyer code MFA, retour login)
   ============================================================ */
.auth-links {
  margin-top: 0.5rem;
  text-align: center;
}

.auth-links a {
  color: #2563eb;
  font-size: 0.85rem;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}
.auth-links {
    margin: 8px 0 14px 0;
    text-align: right;
}

.forgot-link {
    font-size: 13px;
    color: #0078d4;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}
.auth-form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
    text-align: center;
}

