/* ATTENTION : on NE redéfinit plus les couleurs ici.
   On laisse theme-onelaw.css définir les variables (bleu Onelaw, etc.)
   Ce fichier gère seulement le layout générique. */

/* Layout général */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Century Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Conteneur central pour la page de login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
}

.login-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-logo {
  height: 64px;
  object-fit: contain;
}

.login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #000000;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Formulaire */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  min-height: 42px;

  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;

  font-size: 0.95rem;
  color: #111827;
  outline: none;
}

/* On renforce encore un peu à l'intérieur de la carte, au cas où theme-onelaw.css
   serait très agressif sur les input */
.login-card input.form-input {
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #111827;
}

.form-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsla(var(--primary), 0.15);
}

.login-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: #4b5563;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.btn-ghost:hover {
  color: #111827;
}

/* Messages */
.login-error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #b91c1c;
}

.login-success {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #15803d;
}

/* Texte secondaire */
.text-muted {
  font-size: 0.8rem;
  color: #000000;
  text-align: center;
  margin-top: 1.5rem;
}

.login-card .btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}