/* ═══════════════════════════════════════════════════════
   auth_collectivites.css — pages connexion / reset mdp
   ═══════════════════════════════════════════════════════ */

:root{
  --ac-brand:#013759; --ac-green:#00bf63; --ac-green-2:#7ed957;
  --ac-bg:#f5f7f2; --ac-muted:#5b6f60;
  --ac-shadow:0 20px 60px rgba(16,24,40,.12); --ac-radius:20px;
}

/* ── Page wrapper ── */
.auth-page{
  min-height:82vh; background:var(--ac-bg);
  display:flex; align-items:center; justify-content:center;
  padding:3rem 1.25rem;
}

/* ── Card ── */
.auth-card{
  background:#fff; border-radius:var(--ac-radius);
  box-shadow:var(--ac-shadow); overflow:hidden;
  width:100%; max-width:460px;
}

/* Card header */
.auth-card-header{
  background:linear-gradient(135deg,#003d22,#006633);
  padding:2rem 2.25rem 1.5rem; text-align:center; color:#fff;
}
.auth-card-badge{
  display:inline-flex; align-items:center; gap:.4rem;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
  border-radius:99px; padding:.35rem .85rem; font-size:.8rem; font-weight:600;
  color:rgba(255,255,255,.9); margin-bottom:1rem;
}
.auth-card-badge-dot{
  width:7px; height:7px; background:#7ed957; border-radius:50%;
  animation:acPulse 2s ease infinite;
}
@keyframes acPulse{ 0%,100%{opacity:1} 50%{opacity:.35} }
.auth-card-icon{ font-size:2.5rem; margin-bottom:.5rem; display:block; }
.auth-card-header h1{ font-size:1.55rem; font-weight:900; margin-bottom:.3rem; }
.auth-card-header p{ font-size:.88rem; opacity:.8; margin:0; line-height:1.5; }

/* Card body */
.auth-card-body{ padding:1.75rem 2.25rem 2rem; }

/* Flash messages */
.auth-flash-error{
  background:rgba(239,68,68,.07); border:1px solid rgba(239,68,68,.25);
  border-radius:10px; padding:.75rem 1rem; margin-bottom:1rem;
  font-size:.88rem; color:#b91c1c; font-weight:600;
  display:flex; align-items:center; gap:.5rem;
}
.auth-flash-success{
  background:rgba(0,191,99,.07); border:1px solid rgba(0,191,99,.25);
  border-radius:10px; padding:.75rem 1rem; margin-bottom:1rem;
  font-size:.88rem; color:#065f46; font-weight:600;
  display:flex; align-items:center; gap:.5rem;
}

/* Fields */
.auth-field{ margin-bottom:1.1rem; }
.auth-field label{ display:block; font-weight:700; font-size:.85rem; color:var(--ac-brand); margin-bottom:.4rem; }
.auth-field input{
  width:100%; padding:.7rem 1rem; border-radius:11px;
  border:1.5px solid rgba(1,55,89,.14); background:#fafbfc;
  font-size:.95rem; color:var(--ac-brand); outline:none;
  transition:border-color .2s,box-shadow .2s,background .2s;
  font-family:inherit;
}
.auth-field input:focus{
  border-color:var(--ac-green); background:#fff;
  box-shadow:0 0 0 3px rgba(0,191,99,.15);
}

/* Row (remember + forgot) */
.auth-row{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:1.25rem; font-size:.85rem;
}
.auth-remember{ display:flex; align-items:center; gap:.45rem; font-weight:600; color:var(--ac-brand); cursor:pointer; }
.auth-link{ color:var(--ac-green); font-weight:700; text-decoration:none; }
.auth-link:hover{ text-decoration:underline; }

/* Submit button */
.auth-submit{
  width:100%; padding:.85rem; border-radius:12px;
  background:linear-gradient(135deg,var(--ac-green),var(--ac-green-2));
  color:#003d22; font-weight:800; font-size:.98rem;
  border:none; cursor:pointer; transition:all .25s;
  box-shadow:0 6px 20px rgba(0,191,99,.3);
  display:flex; align-items:center; justify-content:center; gap:.5rem;
}
.auth-submit:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(0,191,99,.4); }
.auth-submit-brand{
  background:linear-gradient(135deg,var(--ac-brand),#0a4f7a);
}
.auth-submit-brand:hover{ box-shadow:0 10px 28px rgba(1,55,89,.3); }

/* Footer text */
.auth-footer{
  margin-top:1.25rem; text-align:center; font-size:.85rem; color:var(--ac-muted);
  line-height:1.6;
}
.auth-footer a{ color:var(--ac-green); font-weight:700; text-decoration:none; }
.auth-footer a:hover{ text-decoration:underline; }

/* Password strength hint */
.auth-hint{ font-size:.78rem; color:var(--ac-muted); margin-top:.4rem; }

/* Back link */
.auth-back{
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.85rem; font-weight:700; color:var(--ac-brand);
  text-decoration:none; margin-bottom:1.25rem; opacity:.7; transition:opacity .2s;
}
.auth-back:hover{ opacity:1; }
