/* ============================================================
   PAGE DE CONNEXION — CHARTE SAINT-JOSEPH DE TIVOLI
   ============================================================ */

body.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
  background: var(--tivoli-navy-dark);
}

/* Photo de fond */
body.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../image_tivoli/saint-joseph-de-tivoli-bordeaux-1024x683.jpg') center / cover no-repeat;
  z-index: 0;
  transform: scale(1.04);
}

/* Double couche d'overlay pour profondeur */
body.auth-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg,
      rgba(10, 22, 50, 0.82) 0%,
      rgba(15, 32, 69, 0.72) 45%,
      rgba(26, 53, 105, 0.62) 100%);
  z-index: 1;
}

/* ── Conteneur centré ── */
.auth-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── En-tête : logo + titre au-dessus de la carte ── */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.auth-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tivoli-gold);
  box-shadow:
    0 0 0 6px rgba(196, 164, 107, 0.18),
    0 12px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
}

.auth-brand h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 6px;
}

.auth-brand h1 em {
  color: var(--tivoli-gold);
  font-style: italic;
}

.auth-brand-sub {
  font-size: 10.5px;
  color: rgba(232, 217, 176, 0.70);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}

.auth-brand-rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tivoli-gold), transparent);
}

/* ── Carte formulaire ── */
.auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  padding: 34px 36px 30px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(196, 164, 107, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-card-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--tivoli-navy);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 6px;
}

.auth-lead {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

/* ── Message d'erreur ── */
.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 18px;
}

.auth-error::before {
  content: '⚠';
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Formulaire ── */
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--tivoli-navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.auth-form input {
  padding: 12px 15px;
  border: 1.5px solid #ddd6c0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #faf9f6;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--tivoli-navy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 53, 105, .09);
}

.auth-form input::placeholder {
  color: #b8ae9a;
}

/* ── Bouton de connexion ── */
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 16px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-radius: 8px;
  background: var(--tivoli-navy-dark);
  color: var(--tivoli-gold-light);
  border: 1px solid rgba(196, 164, 107, 0.3);
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .1s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(15, 32, 69, .30);
}

.auth-submit:hover {
  background: var(--tivoli-navy);
  border-color: rgba(196, 164, 107, 0.5);
  box-shadow: 0 6px 20px rgba(15, 32, 69, .38);
}

.auth-submit:active {
  transform: scale(.99);
  box-shadow: 0 2px 8px rgba(15, 32, 69, .25);
}

/* ── Pied de carte ── */
.auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.auth-foot code {
  font-size: 10px;
  background: var(--tivoli-gold-pale);
  border: 1px solid var(--border-light);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--tivoli-navy);
  font-weight: 600;
}

/* ── Mention au bas de page ── */
.auth-copyright {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  font-size: 10px;
  color: rgba(232, 217, 176, 0.42);
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  body.auth-page {
    padding: 20px 12px;
    justify-content: flex-start;
  }

  .auth-wrapper {
    margin-top: 12px;
  }

  .auth-brand {
    margin-bottom: 22px;
  }

  .auth-brand h1 {
    font-size: 32px;
  }

  .auth-logo {
    width: 66px;
    height: 66px;
  }

  .auth-card {
    padding: 26px 22px 22px;
    border-radius: 12px;
  }
}
