#authGate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: linear-gradient(145deg, #241b17, #6B4F3B 60%, #302238);
  font-family: "DM Sans", Arial, sans-serif;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 32px 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
}

.auth-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: #fff;
  background: #6B4F3B;
  font-size: 30px;
  font-weight: 900;
}

.auth-card h1 {
  margin: 0;
  color: #6B4F3B;
  text-align: center;
  letter-spacing: 2px;
  font-size: 25px;
}

.auth-subtitle {
  margin: 9px 0 25px;
  color: #777;
  text-align: center;
  font-size: 13px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  border-radius: 12px;
  background: #f2efed;
}

.auth-tabs button {
  flex: 1;
  padding: 11px 5px;
  border: 0;
  border-radius: 9px;
  color: #62564f;
  background: transparent;
  font-weight: 700;
}

.auth-tabs button.selected {
  color: #fff;
  background: #6B4F3B;
}

.auth-card label {
  display: block;
  margin: 14px 0 7px;
  color: #332b27;
  font-size: 13px;
  font-weight: 700;
}

.auth-card input {
  box-sizing: border-box;
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd5d0;
  border-radius: 11px;
  outline-color: #6B4F3B;
  color: #222;
  background: #fff;
  font-size: 15px;
}

.auth-submit {
  width: 100%;
  margin-top: 17px;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #6B4F3B;
  font-size: 15px;
  font-weight: 800;
}

.auth-submit:disabled {
  opacity: .6;
}

#authMessage {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
}

.auth-error { color: #bd3030; }
.auth-info { color: #6B4F3B; }

.auth-security {
  display: block;
  margin-top: 20px;
  color: #888;
  text-align: center;
}

#authLogout {
  position: fixed;
  z-index: 1000;
  top: 14px;
  right: 14px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #6B4F3B;
  background: white;
  font-weight: 700;
}

/* Masquer toute la navigation pendant l'authentification */
body.auth-locked .sidebar,
body.auth-locked .app-main,
body.auth-locked .bottom-nav {
  display: none !important;
}

/* Véritable logo MON DJASSA */
.auth-logo-image {
  display: block;
  width: 190px;
  max-width: 75%;
  height: 105px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 0;
  background: transparent;
}

/* Récupération du mot de passe */
#authForgot, #authBack {
  display: block;
  margin: 12px auto;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #6B4F3B;
  font-weight: 700;
  cursor: pointer;
}
#authForgot[hidden], #authBack[hidden] {
  display: none;
}

#authLogout {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1000;
  padding: 7px 12px;
  border: 1px solid rgba(192, 192, 192, 0.45);
  border-radius: 20px;
  background: rgba(107, 79, 59, 0.9);
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

#authLogout {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  font-size: 10px;
  opacity: 0.78;
  box-shadow: none;
}

#authLogout:hover {
  opacity: 1;
}
