:root {
  --text-main: #2c2c2c;
  --text-light: #888;
  --bg-cream: #f9f9f7;
  --border-color: #eee;
  --soft-green: #cbd5c0;
}

.login-page {
  max-width: 450px;
  margin: 80px auto;
  padding: 50px 40px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.login-title {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-style: italic;
  margin-bottom: 35px;
  color: var(--text-main);
  font-weight: 400;
}

/* Formulaire */
.login-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group {
  margin-bottom: 25px;
}

.login-form label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 700;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border-color);
  border-radius: 0; /* Design carré comme demandé */
  font-family: sans-serif;
  background-color: var(--bg-cream);
  transition: border-color 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #ccc;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Bouton Noir Fixe */
.btn-login {
  background: #000; /* Bouton Noir */
  color: white !important;
  border: none;
  padding: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
  width: 100%;
}

.btn-login:hover {
  background: #000; /* Reste noir au survol */
  opacity: 0.8; /* Légère variation d'opacité pour le feedback */
}

/* Lien Inscription */
.register-link {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.register-link a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  display: block;
  margin-top: 5px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.register-link a:hover {
  border-bottom-color: var(--text-main);
}

.alert-error {
  background-color: #fff5f5;
  color: #b91c1c;
  padding: 15px;
  margin-bottom: 25px;
  font-size: 0.85rem;
  border-left: 3px solid #b91c1c;
}
