/* ——— Admin login / auth ——— */

.admin-auth-page {
  overflow-x: hidden;
}

.admin-auth {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f6f3ee;
}

.admin-auth__container {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 4vw, 4rem);
}

/* ——— Full-width page landscape ——— */

.admin-auth__scape {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: clamp(90px, 13vh, 130px);
  pointer-events: none;
  overflow: hidden;
}

.admin-auth__scape-hill {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 0 0;
}

.admin-auth__scape-hill--back {
  left: -6%;
  width: 55%;
  height: 70%;
  background: linear-gradient(180deg, #d8ebe2 0%, #c9e2d6 100%);
  opacity: 0.65;
}

.admin-auth__scape-hill--mid {
  left: 28%;
  width: 48%;
  height: 82%;
  background: linear-gradient(180deg, #bdd9ca 0%, #aed0be 100%);
  opacity: 0.8;
}

.admin-auth__scape-hill--front {
  right: -8%;
  width: 58%;
  height: 58%;
  background: linear-gradient(180deg, #a8cfbb 0%, #98c5ae 100%);
}

.admin-auth__scape-path {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 42%;
  height: 55%;
  border-radius: 0 100% 0 0;
  background: linear-gradient(135deg, #efe9df 0%, #e8e0d4 100%);
  opacity: 0.9;
}

.admin-auth__scape-tree {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 19px solid #5a9d87;
}

.admin-auth__scape-tree::after {
  content: "";
  position: absolute;
  top: 19px;
  left: -2px;
  width: 4px;
  height: 9px;
  background: #9a8468;
  border-radius: 0 0 2px 2px;
}

.admin-auth__scape-tree--1 { left: 8%;  bottom: 38%; transform: scale(0.75); opacity: 0.6; }
.admin-auth__scape-tree--2 { left: 18%; bottom: 52%; transform: scale(1); }
.admin-auth__scape-tree--3 { left: 34%; bottom: 44%; transform: scale(0.9); opacity: 0.85; }
.admin-auth__scape-tree--4 { left: 62%; bottom: 48%; transform: scale(0.85); opacity: 0.75; }
.admin-auth__scape-tree--5 { left: 78%; bottom: 40%; transform: scale(1.05); }
.admin-auth__scape-tree--6 { left: 90%; bottom: 46%; transform: scale(0.7); opacity: 0.55; }

/* ——— Left hero panel ——— */

.admin-auth__hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.admin-auth__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.admin-auth__brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-auth__brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2f7d64;
}

.admin-auth__headline {
  max-width: 30rem;
  font-size: clamp(2.125rem, 3.8vw, 2.875rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #17202a;
}

.admin-auth__headline em {
  font-style: normal;
  color: #2f7d64;
}

.admin-auth__lede {
  max-width: 30rem;
  margin-top: 1.125rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #6b7280;
}

.admin-auth__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  max-width: 33rem;
}

.admin-auth__feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.125rem;
  align-items: center;
}

.admin-auth__feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #eaf4ee;
  flex-shrink: 0;
  color: #2f7d64;
}

/* CSS feature icons */
.admin-auth__feature-icon--calendar::before {
  content: "";
  width: 20px;
  height: 18px;
  border: 2px solid #2f7d64;
  border-radius: 4px;
  border-top-width: 5px;
}

.admin-auth__feature-icon--people::before,
.admin-auth__feature-icon--people::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #2f7d64;
}

.admin-auth__feature-icon--people::before {
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: -9px 0 0 #2f7d64, 9px 0 0 #2f7d64;
}

.admin-auth__feature-icon--people::after {
  bottom: 12px;
  width: 14px;
  height: 8px;
  border-radius: 8px 8px 0 0;
  box-shadow: -11px 0 0 #2f7d64, 11px 0 0 #2f7d64;
}

.admin-auth__feature-icon--chart {
  align-items: end;
  gap: 3px;
  padding-bottom: 14px;
}

.admin-auth__feature-icon--chart span {
  display: block;
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: #2f7d64;
}

.admin-auth__feature-icon--chart span:nth-child(1) { height: 8px; }
.admin-auth__feature-icon--chart span:nth-child(2) { height: 14px; }
.admin-auth__feature-icon--chart span:nth-child(3) { height: 10px; }

.admin-auth__feature-icon--shield::before {
  content: "";
  width: 16px;
  height: 18px;
  border: 2px solid #2f7d64;
  border-radius: 3px 3px 9px 9px;
}

.admin-auth__feature-icon--shield::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  border-left: 2px solid #2f7d64;
  border-bottom: 2px solid #2f7d64;
  transform: rotate(-45deg);
  margin-top: 1px;
}

.admin-auth__feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #17202a;
}

.admin-auth__feature-desc {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6b7280;
}

/* ——— Proof strip ——— */

.admin-auth__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  padding: 1rem 1.25rem;
  max-width: 33rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #e7e0d5;
  border-radius: 16px;
}

.admin-auth__proof-item {
  text-align: center;
  padding: 0 0.5rem;
}

.admin-auth__proof-item + .admin-auth__proof-item {
  border-left: 1px solid #e7e0d5;
}

.admin-auth__proof-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #17202a;
}

.admin-auth__proof-label {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-auth__proof-icon {
  position: relative;
  width: 16px;
  height: 16px;
  color: #2f7d64;
  flex-shrink: 0;
}

.admin-auth__proof-icon--people::before,
.admin-auth__proof-icon--people::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.admin-auth__proof-icon--people::before {
  top: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor;
}

.admin-auth__proof-icon--people::after {
  bottom: 2px;
  width: 9px;
  height: 6px;
  border-radius: 6px 6px 0 0;
  box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor;
}

.admin-auth__proof-icon--star {
  background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.admin-auth__proof-icon--shield::before {
  content: "";
  position: absolute;
  inset: 0 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 6px 6px;
}

.admin-auth__proof-icon--shield::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 5px;
  height: 3px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

/* ——— Right login panel ——— */

.admin-auth__main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-auth__panel {
  width: min(520px, 100%);
}

/* ——— Login card ——— */

.admin-login__card {
  background: #ffffff;
  border: 1px solid #e7e0d5;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(23, 32, 42, 0.14);
  padding: clamp(2.25rem, 4vw, 3.5rem);
}

.admin-login__mark {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: #eaf4ee;
}

.admin-login__mark-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.admin-login__heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #17202a;
}

.admin-login__subheading {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7280;
}

.admin-login__alert {
  margin-top: 1.5rem;
  padding: 1rem 1.125rem;
  border-radius: 12px;
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.admin-login__alert-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #b42318;
}

.admin-login__alert-body {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #912018;
}

.admin-login__form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  margin-top: 2.25rem;
}

.admin-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-login__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.admin-login__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-login__input-icon {
  position: absolute;
  left: 1.125rem;
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.admin-login__input-icon--mail::before {
  content: "";
  position: absolute;
  inset: 3px 1px 5px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.admin-login__input-icon--mail::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 2px;
  width: 12px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: skewY(-18deg);
}

.admin-login__input-icon--lock::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 10px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.admin-login__input-icon--lock::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 14px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.admin-login__input-icon--eye::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 14px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.admin-login__input-icon--eye::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.admin-login__input {
  width: 100%;
  height: 60px;
  padding: 0 1.125rem 0 3rem;
  font: inherit;
  font-size: 0.9375rem;
  color: #17202a;
  background: #fbfaf7;
  border: 1px solid #d9ded8;
  border-radius: 14px;
  transition:
    border-color 160ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 160ms cubic-bezier(0.4, 0, 0.2, 1),
    background 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-login__input--password {
  padding-right: 3rem;
}

.admin-login__input:hover {
  border-color: #d9d0c4;
}

.admin-login__input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2f7d64;
  box-shadow: 0 0 0 4px rgba(47, 125, 100, 0.14);
}

.admin-login__input::placeholder {
  color: #9ca3af;
}

.admin-login__input-toggle {
  position: absolute;
  right: 1.125rem;
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.admin-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -0.25rem;
}

.admin-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
}

.admin-login__remember input {
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.admin-login__remember input:checked {
  background: #2f7d64;
  border-color: #2f7d64;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.admin-login__remember input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 125, 100, 0.2);
}

.admin-login__forgot {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2f7d64;
  text-decoration: none;
}

.admin-login__forgot:hover {
  color: #0f5c45;
}

.admin-login__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  margin-top: 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #2f7d64;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(47, 125, 100, 0.22);
  transition:
    transform 160ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 160ms cubic-bezier(0.4, 0, 0.2, 1),
    background 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-login__submit:hover {
  transform: translateY(-2px);
  background: #0f5c45;
  box-shadow: 0 12px 28px rgba(47, 125, 100, 0.3);
}

.admin-login__submit:focus-visible {
  outline: none;
  box-shadow:
    0 10px 24px rgba(47, 125, 100, 0.28),
    0 0 0 3px rgba(47, 125, 100, 0.25);
}

.admin-login__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-login__divider::before,
.admin-login__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7e0d5;
}

.admin-login__divider span {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.admin-login__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  margin-top: 1.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2f7d64;
  text-decoration: none;
  transition: color 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-login__back:hover {
  color: #0f5c45;
}

/* ——— Page footer ——— */

.admin-auth__footer {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  padding: 0 1.5rem 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.admin-auth__footer a {
  color: #6b7280;
  text-decoration: none;
}

.admin-auth__footer a:hover {
  color: #2f7d64;
}

.admin-auth__footer-sep {
  margin: 0 0.5rem;
  color: #d1d5db;
}

/* ——— Tablet ——— */

@media (max-width: 1100px) {
  .admin-auth__container {
    gap: 2.5rem;
  }
}

/* ——— Mobile ——— */

@media (max-width: 900px) {
  .admin-auth__container {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: calc(100dvh - 4rem);
    padding: 2rem 1.25rem 6rem;
  }

  .admin-auth__hero {
    display: none;
  }

  .admin-auth__main {
    min-height: calc(100dvh - 8rem);
  }

  .admin-auth__scape-hill--back { width: 70%; }
  .admin-auth__scape-hill--mid { left: 20%; width: 60%; }
  .admin-auth__scape-path { width: 55%; }
}

@media (max-width: 480px) {
  .admin-login__card {
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
  }

  .admin-login__heading {
    font-size: 1.75rem;
  }

  .admin-login__mark {
    width: 84px;
    height: 84px;
  }
}
