/* Variables */
:root {
  --card-bg: #ffffff;
  --page-bg: #fafafa;
  /* Use higher-contrast accent for readability */
  --accent: #c74224;
  --accent-hover: #a8361c;
  --muted: #6b6b6b;
  --border: #e6e6e6;
}

body {
  background: var(--page-bg);
  
}

/* Page d'authentification */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  margin: 0 auto; /* avoid extra gap under fixed navbar */
  margin-top: 210px;
}

/* Carte d'authentification */
.auth-card h2 {
  margin: 0 0 12px 0;
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  color: #111;
}

.auth-card p.lead {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 1.4rem;
  font-family: 'Inter', sans-serif;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card textarea,
.auth-card input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #111;
  font-size: 1.3rem;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.auth-card textarea {
  min-height: 90px;
  resize: vertical;
}

.auth-card label {
  color: #374151; 
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
}

.auth-card .small {
  color: var(--muted);
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
}

/* Actions */
.auth-actions {
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  gap: 12px;
}

/* Boutons */
.btn-primary {
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

/* focus */
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
}

/* Media queries */
@media (max-width: 500px) {
  .auth-card {
  padding: 20px;
  }
}

/* Tablette */
@media (max-width: 900px) {
  .auth-page {
    margin: 2rem;
    margin-top: 7rem;
    padding: 32px 12px;
  }
}

/* Téléphone */
@media (max-width: 600px) {
  .auth-page {
    margin: 0;
    margin-top: 6rem;
    padding: 24px 12px;
  }
  .auth-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-primary {
    width: 100%;
  }
}