/* ===== LOGIN PAGE ===== */

body.login-page {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(2, 6, 23, 0.85);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  text-align: center;
  border: 1px solid #1e293b;
}

.login-card h2 {
  margin: 0 0 20px;
  color: #e5e7eb;
}

.login-card input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

.login-card input::placeholder {
  color: #64748b;
}

.login-card button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.login-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(37,99,235,.4);
}

.login-card .muted {
  margin-top: 14px;
  font-size: 12px;
  color: #94a3b8;
}

button,
select,
.nasyu-menu-item,
.user-item,
.clickable {
  cursor: pointer;
}

.user-item:hover {
  background: rgba(255,255,255,0.05);
}

/* ===============================
   LOGIN MESSAGE (ATTENTE / ERREUR)
=============================== */

.login-message {
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.login-message.pending {
  display: block;
  background: rgba(255, 200, 80, 0.15);
  border: 1px solid #ffcc66;
  color: #ffcc66;
}

.login-message.error {
  display: block;
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid #ff6666;
  color: #ff6666;
}

/* ===============================
   PASSWORD TOGGLE (LOGIN) — 🙈 / 👁️ CLEAN
=============================== */

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 52px;
}

.password-field .toggle-password {
  all: unset;
  position: absolute;
  right: 12px;
  inset-block: 0;

  width: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  font-size: 18px;
  line-height: 1;

  color: #6b7cff;
  opacity: 0.7;
}

/* 🙈 par défaut (mot de passe masqué) */
.password-field .toggle-password::before {
  content: "🙈";
}

/* 👁️ quand visible */
.password-field .toggle-password.is-visible::before {
  content: "👁️";
}

.password-field .toggle-password:hover {
  opacity: 1;
}
.forgot-password-btn {
  width: 100%;
  height: 44px;                 /* 🔥 même hauteur visuelle */
  margin-top: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;

  border: none;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  opacity: 0.85;

  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.forgot-password-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(37,99,235,.35);
}
#login-btn {
  margin-top: 10px;
}
