/* ============================================================
   ODA — Login page styles
   Échelle d'espacement : 4 / 8 / 12 / 16 / 20 / 24 / 28 / 32 / 40
   ============================================================ */

/* Inter (self-hosted, RGPD-friendly, weight 800 uniquement utilisée ici) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/public/resources/fonts/Inter-ExtraBold.woff2') format('woff2');
}

/* ============================================================
   Layout : carte centrée verticalement, contrainte 380px max
   ============================================================ */
.login-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 24px 0;
  background: #fafbfc;
  z-index: 1;
  overflow-y: auto;
}

.login-wrapper .container { width: 100%; }

.login-box {
  max-width: 380px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================================
   En-tête : wordmark ODA + accent bar + sous-titre
   ============================================================ */
.login-title {
  text-align: center;
  margin: 0 0 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: #2c3e50;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* Petit trait coloré sous le wordmark (rappel de la couleur primaire app) */
.login-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin: 14px auto 0;
  background: #337ab7;
  border-radius: 2px;
}

.login-subtitle {
  text-align: center;
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 400;
  color: #6c757d;
}

/* ============================================================
   Form : polish minimal sur les classes Bootstrap 3 natives
   ============================================================ */
.login-form .form-group {
  margin: 0 0 16px;
}

.login-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  margin: 0 0 6px;
}

.login-form .form-control {
  height: 40px;
  box-shadow: none;
  border-color: #d4d8dd;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form .form-control:focus {
  border-color: #337ab7;
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.12);
}

/* Bouton principal full-width, hauteur alignée sur les inputs */
.login-form .btn-primary {
  display: block;
  width: 100%;
  height: 40px;
  margin: 12px 0 0;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Lien "mot de passe oublié" sous le bouton, centré */
.login-forgot {
  text-align: center;
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   Alerte d'erreur (flash) compacte
   ============================================================ */
.login-wrapper .alert {
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
}
.login-wrapper .alert p { margin: 0; }
.login-wrapper .alert p + p { margin-top: 4px; }

/* ============================================================
   Footer : copyright + version (centré, discret)
   ============================================================ */
.login-footer {
  text-align: center;
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #a8b0b9;
}

