/**
 * Connexion SIPPA — République du Cameroun / MINADER
 * Refonte UI 2026 — vert #0E7A3A · rouge #CE1126 · or #FCD116
 */
:root {
  --av-green: #0E7A3A;
  --av-green-deep: #085427;
  --av-ink: #0B2416;
  --av-gold: #FCD116;
  --av-red: #CE1126;
  --av-cream: #F4F7F5;
  --av-muted: #5C7066;
  --av-line: #D8E6DC;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body.auth-av {
  min-height: 100vh;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--av-ink);
  background: #EAF3ED;
  overflow-x: hidden;
}

.auth-av__glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48rem 32rem at 8% 12%, rgba(14, 122, 58, 0.16), transparent 58%),
    radial-gradient(36rem 28rem at 92% 88%, rgba(252, 209, 22, 0.18), transparent 55%),
    radial-gradient(24rem 18rem at 78% 8%, rgba(206, 17, 38, 0.08), transparent 50%);
}

.auth-av__split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(360px, 0.92fr);
  min-height: 100vh;
}

.auth-av__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.4rem 3.4rem 2.2rem;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(7, 51, 24, 0.28) 0%, transparent 42%),
    linear-gradient(145deg, #052414 0%, #0B5C2C 46%, #128A38 100%);
}

.auth-av__brand::before {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: -10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 209, 22, 0.22), transparent 68%);
  pointer-events: none;
}

.auth-av__brand::after {
  content: "SIPPA";
  position: absolute;
  right: -0.6rem;
  bottom: -1.8rem;
  font-size: clamp(5.5rem, 16vw, 10.5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.78;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.auth-av__brand-inner { position: relative; z-index: 1; }

.auth-av__seal {
  display: flex;
  align-items: center;
  margin-bottom: 1.55rem;
}

.auth-av__seal img {
  width: min(100%, 280px);
  height: auto;
  max-height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow:
    0 0 0 3px rgba(252, 209, 22, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.auth-av__republic {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--av-gold);
}

.auth-av__wordmark {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 3.55rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.auth-av__wordmark::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 99px;
  background: linear-gradient(90deg, #FCD116, #CE1126);
}

.auth-av__tagline {
  margin: 1rem 0 0;
  max-width: 26rem;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.auth-av__ministry {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(252, 209, 22, 0.88);
}

.auth-av__points {
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  max-width: 24rem;
}

.auth-av__points li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.auth-av__points i {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(252, 209, 22, 0.16);
  color: var(--av-gold);
  font-size: 1.12rem;
  flex-shrink: 0;
}

.auth-av__motto {
  position: relative;
  z-index: 1;
  margin: 2.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.auth-av__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 9%;
}

.auth-av__card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 1.85rem 1.75rem 1.65rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(11, 36, 22, 0.1);
  backdrop-filter: blur(18px);
}

.auth-av__card-flag {
  display: flex;
  height: 5px;
  margin: -1.85rem -1.75rem 1.35rem;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}
.auth-av__card-flag span { flex: 1; }
.auth-av__card-flag span:nth-child(1) { background: var(--av-green); }
.auth-av__card-flag span:nth-child(2) { background: var(--av-red); }
.auth-av__card-flag span:nth-child(3) { background: var(--av-gold); }

.auth-av__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.auth-av__card-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--av-green-deep);
}

.auth-av__title {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--av-ink);
}

.auth-av__sub {
  margin: 0 0 1.45rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--av-muted);
}

.auth-av__field { margin-bottom: 1.05rem; }

.auth-av__field label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--av-ink);
}

.auth-av__control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  padding: 0 0.95rem;
  border: 1px solid var(--av-line);
  border-radius: 14px;
  background: #F7FBF8;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-av__control i {
  color: var(--av-green);
  font-size: 1.12rem;
  flex-shrink: 0;
}

.auth-av__control input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--av-ink);
  font-size: 0.96rem;
  padding: 0.75rem 0;
  outline: none;
}

.auth-av__control input::placeholder { color: #93A59A; }

.auth-av__control:focus-within {
  background: #fff;
  border-color: var(--av-green);
  box-shadow: 0 0 0 4px rgba(14, 122, 58, 0.14);
}

.auth-av__control.is-invalid {
  border-color: var(--av-red);
  box-shadow: 0 0 0 4px rgba(206, 17, 38, 0.12);
}

.auth-av__toggle {
  border: 0;
  background: transparent;
  color: #7A8C82;
  padding: 0.25rem;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.auth-av__toggle:hover { color: var(--av-green-deep); }

.auth-av__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 1.3rem;
}

.auth-av__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--av-muted);
  cursor: pointer;
}

.auth-av__remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--av-green);
}

.auth-av__link {
  color: var(--av-green-deep);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-av__link:hover {
  color: var(--av-ink);
  text-decoration: underline;
}

.auth-av__submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #149447 0%, #0A5C2C 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(10, 92, 44, 0.28);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.auth-av__submit i { color: var(--av-gold); font-size: 1.2rem; }

.auth-av__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(10, 92, 44, 0.32);
}

.auth-av__submit:active { transform: translateY(0); }

.auth-av__alert {
  margin-bottom: 1.05rem;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.auth-av__alert p { margin: 0; }

.auth-av__alert--error {
  background: rgba(206, 17, 38, 0.07);
  border: 1px solid rgba(206, 17, 38, 0.2);
  color: #9B1218;
}

.auth-av__alert--info {
  background: rgba(14, 122, 58, 0.08);
  border: 1px solid rgba(14, 122, 58, 0.18);
  color: var(--av-green-deep);
}

.auth-av__invalid {
  display: block;
  margin-top: 0.38rem;
  font-size: 0.75rem;
  color: var(--av-red);
}

.auth-av__footer {
  margin: 1.25rem auto 0;
  max-width: 440px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--av-muted);
}

.auth-av__lang { display: flex; justify-content: flex-end; }

.cm-lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #F1F6F3;
  border: 1px solid #D4E4D9;
}

.cm-lang__btn {
  min-width: 2.2rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #4A6354;
  text-decoration: none;
}

.cm-lang__btn.is-active {
  background: #0E7A3A;
  color: #fff;
}

.enqueteur-header .cm-lang {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}
.enqueteur-header .cm-lang__btn { color: rgba(255, 255, 255, 0.88); }
.enqueteur-header .cm-lang__btn.is-active {
  background: #FCD116;
  color: #073318;
}

@media (max-width: 960px) {
  .auth-av__split { grid-template-columns: 1fr; }
  .auth-av__brand {
    padding: 1.5rem 1.35rem 1.2rem;
    min-height: auto;
  }
  .auth-av__wordmark { font-size: 2.45rem; }
  .auth-av__points,
  .auth-av__motto { display: none; }
  .auth-av__panel { padding: 1.5rem 1.15rem 2.2rem; }
  .auth-av__brand::after {
    font-size: 5.2rem;
    right: -0.3rem;
    bottom: -1rem;
  }
  .auth-av__card { border-radius: 22px; }
}
