/* login.css — modale de connexion autonome */

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.login-overlay.is-open {
  display: flex;
}

.login-modal {
  background: #fff;
  color: #111;
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
}

.login-modal h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.login-modal p {
  margin: 0 0 1.25rem;
  color: #555;
}

.login-modal input[type="email"],
.login-modal input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

.login-modal button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.login-modal button[type="submit"]:hover { background: #333; }
.login-modal button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.login-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.login-message {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}
.login-message.is-error { color: #c0392b; }
.login-message.is-ok { color: #1e824c; }

.login-continue {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #777;
  text-decoration: underline;
}