/* ——— Staff login (field app entry) ——— */

.staff-auth-body {
  margin: 0;
  font-family: var(--adm-font, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  color: #17202a;
  background: #f6f3ee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.staff-auth {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vh, 2.75rem) 1.25rem
           calc(clamp(2rem, 6vh, 3rem) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.staff-auth *,
.staff-auth *::before,
.staff-auth *::after {
  box-sizing: border-box;
}

/* ——— Background landscape ——— */

.staff-auth__scape {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: clamp(150px, 26vh, 240px);
  pointer-events: none;
  overflow: hidden;
}

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

.staff-auth__scape-hill--back {
  left: -10%;
  width: 70%;
  height: 62%;
  background: linear-gradient(180deg, #dceee4 0%, #cde4d8 100%);
  opacity: 0.7;
}

.staff-auth__scape-hill--mid {
  right: -12%;
  width: 75%;
  height: 78%;
  background: linear-gradient(180deg, #c3ddd0 0%, #b2d3c1 100%);
  opacity: 0.85;
}

.staff-auth__scape-hill--front {
  left: 15%;
  width: 80%;
  height: 50%;
  background: linear-gradient(180deg, #a8cfbb 0%, #97c5ac 100%);
}

.staff-auth__scape-path {
  position: absolute;
  right: 8%;
  bottom: -25%;
  width: 38%;
  height: 70%;
  border-radius: 100% 0 0 0;
  background: linear-gradient(135deg, #f0eae0 0%, #e8e0d4 100%);
  opacity: 0.9;
}

.staff-auth__scape-tree {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 26px solid #5a9d87;
}

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

.staff-auth__scape-tree--1 { left: 6%;  bottom: 40%; transform: scale(1.1); }
.staff-auth__scape-tree--2 { left: 16%; bottom: 30%; transform: scale(0.8); opacity: 0.7; }
.staff-auth__scape-tree--3 { right: 8%; bottom: 42%; transform: scale(1.2); }
.staff-auth__scape-tree--4 { right: 20%; bottom: 32%; transform: scale(0.85); opacity: 0.75; }

/* ——— Brand ——— */

.staff-auth__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staff-auth__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.staff-auth__brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.staff-auth__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #17202a;
}

.staff-auth__brand-name em {
  display: block;
  font-style: normal;
  color: #2f7d64;
}

.staff-auth__tag {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2f7d64;
  background: #eaf4ee;
  border-radius: 999px;
}

/* ——— Card ——— */

.staff-login__card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e7e0d5;
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(23, 32, 42, 0.12);
  padding: clamp(1.5rem, 5vw, 2.25rem);
}

.staff-login__heading {
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #17202a;
}

.staff-login__heading em {
  font-style: normal;
  color: #2f7d64;
}

.staff-login__subheading {
  margin: 0.625rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6b7280;
}

/* ——— Status strip ——— */

.staff-login__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  margin: 1.5rem 0 0;
  padding: 1rem 0.5rem;
  list-style: none;
  background: #fbfaf7;
  border: 1px solid #e7e0d5;
  border-radius: 16px;
}

.staff-login__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.staff-login__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  border-top: 2px dotted #cdd6cf;
}

.staff-login__step-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eaf4ee;
  color: #2f7d64;
}

.staff-login__step-icon svg {
  width: 20px;
  height: 20px;
}

.staff-login__step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* ——— Form ——— */

.staff-login__alert {
  margin: 1.5rem 0 0;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  font-size: 0.875rem;
}

.staff-login__form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-top: 1.5rem;
}

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

.staff-login__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #17202a;
}

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

.staff-login__input-icon {
  position: absolute;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  pointer-events: none;
}

.staff-login__input-icon svg {
  width: 20px;
  height: 20px;
}

.staff-login__input {
  width: 100%;
  height: 60px;
  padding: 0 1rem 0 3rem;
  font: inherit;
  font-size: 1rem;
  color: #17202a;
  background: #fbfaf7;
  border: 1px solid #e7e0d5;
  border-radius: 14px;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.staff-login__input--password {
  padding-right: 3.25rem;
}

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

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

.staff-login__toggle {
  position: absolute;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.staff-login__toggle svg {
  width: 20px;
  height: 20px;
}

.staff-login__toggle:focus-visible {
  outline: 2px solid #2f7d64;
  outline-offset: 2px;
  border-radius: 10px;
}

.staff-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.staff-login__remember input {
  -webkit-appearance: none;
  appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms ease, border-color 160ms ease;
}

.staff-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' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}

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

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

.staff-login__forgot:active {
  color: #0f5c45;
}

.staff-login__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  margin-top: 0.5rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  background: #2f7d64;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(47, 125, 100, 0.24);
  transition:
    transform 120ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.staff-login__submit:active {
  transform: scale(0.985);
  background: #0f5c45;
  box-shadow: 0 4px 12px rgba(47, 125, 100, 0.24);
}

.staff-login__submit:focus-visible {
  outline: none;
  box-shadow:
    0 8px 20px rgba(47, 125, 100, 0.24),
    0 0 0 4px rgba(47, 125, 100, 0.25);
}

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

/* ——— Secondary links ——— */

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

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

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

.staff-login__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.staff-login__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2f7d64;
  text-decoration: none;
}

.staff-login__link svg {
  width: 18px;
  height: 18px;
}

.staff-login__link:active {
  color: #0f5c45;
}

@media (hover: hover) {
  .staff-login__link:hover {
    color: #0f5c45;
  }
}

/* ——— Reassurance ——— */

.staff-auth__reassure {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.staff-auth__reassure svg {
  width: 16px;
  height: 16px;
  color: #2f7d64;
  flex-shrink: 0;
}

/* ——— Compact phones ——— */

@media (max-width: 360px) {
  .staff-login__steps {
    padding: 0.875rem 0.25rem;
  }

  .staff-login__step-icon {
    width: 38px;
    height: 38px;
  }

  .staff-login__step:not(:last-child)::after {
    top: 19px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
  }
}
