/**
 * M-TIMS Collect — page de connexion Nigeria
 * Split : panneau vert + formulaire
 */
:root {
  --av-green: #008751;
  --av-green-deep: #006B3F;
  --av-leaf: #1FA36A;
  --av-ink: #10241A;
  --av-muted: #4F6358;
  --av-line: #D5E4DB;
  --av-cream: #F4F8F5;
  --av-red: #B42318;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body.auth-ng {
  min-height: 100vh;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--av-ink);
  background: var(--av-cream);
}

.auth-ng__flag {
  display: flex;
  height: 5px;
  position: relative;
  z-index: 2;
}
.auth-ng__flag span { flex: 1; }
.auth-ng__flag span:nth-child(1),
.auth-ng__flag span:nth-child(3) { background: var(--av-green); }
.auth-ng__flag span:nth-child(2) { background: #fff; }

.auth-ng__split {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(340px, 0.92fr);
  min-height: calc(100vh - 5px);
}

/* —— Panneau de marque —— */
.auth-ng__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.4rem 3rem 2rem;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(148deg, #05472d 0%, #006B3F 46%, #008751 100%);
}

.auth-ng__brand-glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: -10rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-ng__brand-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}

.auth-ng__brand::after {
  content: "M-TIMS";
  position: absolute;
  right: -0.6rem;
  bottom: -1.4rem;
  font-size: clamp(5rem, 13vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.auth-ng__brand-mini {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}

.auth-ng__brand-mini img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.auth-ng__brand-mini span {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-ng__brand-mini small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.auth-ng__brand-copy { position: relative; z-index: 1; }

.auth-ng__republic {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.auth-ng__wordmark {
  margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.auth-ng__product-line {
  margin: 0.35rem 0 0;
  max-width: 28rem;
  font-size: clamp(0.92rem, 1.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.auth-ng__tagline {
  margin: 1rem 0 0;
  max-width: 26rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.auth-ng__points {
  margin: 2.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  max-width: 22.5rem;
}

.auth-ng__points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.auth-ng__points i {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.auth-ng__aside-foot {
  position: relative;
  z-index: 1;
  margin: 2.4rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Formulaire —— */
.auth-ng__panel {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(0, 135, 81, 0.08), transparent 55%),
    var(--av-cream);
  padding: 1.4rem 7% 2rem;
}

.auth-ng__panel-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.4rem;
}

.auth-ng__card {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 0 2rem 2rem;
  background: #fff;
  border: 1px solid rgba(213, 228, 219, 0.95);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(16, 36, 26, 0.08);
}

.auth-ng__card-flag {
  display: flex;
  height: 5px;
  margin: 0 -2rem 1.55rem;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}
.auth-ng__card-flag span { flex: 1; }
.auth-ng__card-flag span:nth-child(1),
.auth-ng__card-flag span:nth-child(3) { background: var(--av-green); }
.auth-ng__card-flag span:nth-child(2) { background: #fff; }

.auth-ng__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--av-green);
}

.auth-ng__title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.auth-ng__sub {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--av-muted);
}

.auth-ng__field { margin-bottom: 1.05rem; }

.auth-ng__field label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--av-ink);
}

.auth-ng__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: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-ng__control i {
  color: var(--av-green);
  font-size: 1.14rem;
  flex-shrink: 0;
}

.auth-ng__control input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--av-ink);
  font-size: 0.96rem;
  font-family: inherit;
  padding: 0.8rem 0;
  outline: none;
}

.auth-ng__control input::placeholder { color: #8A9E93; }

.auth-ng__control:focus-within {
  border-color: var(--av-green);
  box-shadow: 0 0 0 4px rgba(0, 135, 81, 0.14);
}

.auth-ng__control.is-invalid {
  border-color: var(--av-red);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.auth-ng__toggle {
  border: 0;
  background: transparent;
  color: #6E8278;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.14rem;
  line-height: 1;
  border-radius: 8px;
}

.auth-ng__toggle:hover { color: var(--av-green-deep); background: #F3F8F5; }

.auth-ng__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.1rem 0 1.3rem;
}

.auth-ng__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--av-muted);
  cursor: pointer;
  user-select: none;
}

.auth-ng__remember input {
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  border: 1.5px solid #B7C9BE;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-ng__remember input:checked {
  background: var(--av-green);
  border-color: var(--av-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-ng__link {
  color: var(--av-green-deep);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-ng__link:hover { text-decoration: underline; }

.auth-ng__submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.2rem;
  border: 0;
  border-radius: 14px;
  background: var(--av-green);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 135, 81, 0.24);
  transition: background 0.15s ease, transform 0.12s ease;
}

.auth-ng__submit i { font-size: 1.15rem; transition: transform 0.15s ease; }

.auth-ng__submit:hover {
  background: var(--av-green-deep);
  transform: translateY(-1px);
}

.auth-ng__submit:hover i { transform: translateX(3px); }

.auth-ng__submit:focus-visible {
  outline: 2px solid var(--av-green-deep);
  outline-offset: 3px;
}

.auth-ng__alert {
  margin-bottom: 1.1rem;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-ng__alert p { margin: 0; }

.auth-ng__alert--error {
  background: #FDF2F0;
  border: 1px solid #F3D0CB;
  color: #8E2A22;
}

.auth-ng__alert--info {
  background: #EEF8F2;
  border: 1px solid #CDE6D7;
  color: var(--av-green-deep);
}

.cm-lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--av-line);
}
.cm-lang__btn {
  min-width: 2.2rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #5A6E64;
  text-decoration: none;
}
.cm-lang__btn.is-active {
  background: var(--av-green);
  color: #fff;
}

@media (max-width: 960px) {
  .auth-ng__split { grid-template-columns: 1fr; }
  .auth-ng__brand {
    padding: 1.35rem 1.35rem 1.2rem;
    min-height: auto;
  }
  .auth-ng__wordmark { font-size: 2.2rem; }
  .auth-ng__product-line { font-size: 0.92rem; letter-spacing: 0.01em; }
  .auth-ng__points,
  .auth-ng__aside-foot,
  .auth-ng__brand-mini small { display: none; }
  .auth-ng__tagline { margin-top: 0.45rem; font-size: 0.9rem; }
  .auth-ng__brand::after { font-size: 5rem; }
  .auth-ng__panel { padding: 1.15rem 1.15rem 2rem; }
  .auth-ng__card { padding: 0 1.3rem 1.5rem; }
  .auth-ng__card-flag { margin: 0 -1.3rem 1.25rem; }
}

@media (max-width: 480px) {
  .auth-ng__title { font-size: 1.55rem; }
  .auth-ng__panel-top { margin-bottom: 0.9rem; }
}
