:root {
  color-scheme: light;
  --staff-ink: #13231d;
  --staff-muted: #65716d;
  --staff-green: #0d6c52;
  --staff-green-deep: #074b3a;
  --staff-cream: #f5f1e8;
  --staff-gold: #d6a642;
  --staff-line: #dfe5e1;
  --staff-white: #ffffff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #edf2ef;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--staff-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(214, 166, 66, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 95%, rgba(13, 108, 82, 0.14), transparent 32rem),
    linear-gradient(145deg, #f8faf8 0%, #edf2ef 58%, #e8efeb 100%);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.staff-access-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0 24px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.staff-access-card {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  overflow: hidden;
  border: 1px solid rgba(19, 35, 29, 0.1);
  border-radius: 32px;
  background: var(--staff-white);
  box-shadow: 0 34px 80px rgba(28, 51, 42, 0.14);
}

.staff-welcome-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  color: #fff;
  background:
    linear-gradient(154deg, rgba(14, 111, 83, 0.98), rgba(4, 55, 43, 0.98)),
    var(--staff-green-deep);
}

.staff-welcome-panel::before,
.staff-welcome-panel::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.staff-welcome-panel::before {
  width: 430px;
  height: 430px;
  top: -180px;
  right: -210px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.035),
    0 0 0 108px rgba(255, 255, 255, 0.025);
}

.staff-welcome-panel::after {
  width: 280px;
  height: 280px;
  left: -140px;
  bottom: -140px;
  background: rgba(214, 166, 66, 0.12);
}

.staff-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.staff-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
}

.staff-brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.staff-welcome-copy {
  max-width: 440px;
  margin: auto 0;
  padding: 64px 0;
}

.staff-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #f5d890;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.staff-kicker::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--staff-gold);
}

.staff-welcome-copy h1 {
  max-width: 420px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 6vw, 78px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.staff-welcome-copy p {
  max-width: 420px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.staff-access-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(10px);
}

.staff-access-note > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--staff-green-deep);
  background: #f2d993;
  font-size: 14px;
  font-weight: 950;
}

.staff-access-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.staff-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 68px clamp(44px, 7vw, 92px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
    linear-gradient(145deg, transparent 48%, rgba(214, 166, 66, 0.08) 48%);
}

.staff-form-heading > span {
  color: var(--staff-green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staff-form-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.staff-form-heading p {
  margin: 14px 0 0;
  color: var(--staff-muted);
  font-size: 15px;
  line-height: 1.65;
}

.staff-login-form {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}

.staff-field {
  display: grid;
  gap: 9px;
  color: #263b33;
  font-size: 13px;
  font-weight: 780;
}

.staff-control {
  position: relative;
  display: block;
}

.staff-control input,
.staff-control select {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--staff-line);
  border-radius: 14px;
  outline: none;
  color: var(--staff-ink);
  background: #fbfcfb;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.staff-control input {
  padding: 0 17px;
}

.staff-control select {
  appearance: none;
  padding: 0 48px 0 17px;
}

.staff-control input::placeholder {
  color: #9aa39f;
}

.staff-control input:focus,
.staff-control select:focus {
  border-color: rgba(13, 108, 82, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 108, 82, 0.1);
}

.staff-select-control::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid #60726a;
  border-bottom: 2px solid #60726a;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.staff-password-control input {
  padding-right: 78px;
}

.staff-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 58px;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--staff-green);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  transform: translateY(-50%);
}

.staff-password-toggle:hover {
  background: rgba(13, 108, 82, 0.07);
}

.staff-submit {
  min-height: 58px;
  margin-top: 6px;
  padding: 0 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--staff-green), var(--staff-green-deep));
  box-shadow: 0 15px 26px rgba(7, 75, 58, 0.2);
  font-size: 15px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.staff-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(7, 75, 58, 0.25);
}

.staff-submit:focus-visible,
.staff-password-toggle:focus-visible,
.staff-footer a:focus-visible,
.staff-brand:focus-visible {
  outline: 3px solid rgba(214, 166, 66, 0.62);
  outline-offset: 3px;
}

.staff-form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--staff-muted);
  font-size: 13px;
  line-height: 1.45;
}

.staff-form-status[data-state="error"] {
  color: #b13c30;
}

.staff-form-status[data-state="info"] {
  color: var(--staff-green);
}

.staff-no-registration {
  margin: 16px 0 0;
  padding-top: 22px;
  border-top: 1px solid #e8ece9;
  color: #7a8581;
  font-size: 12px;
  line-height: 1.6;
}

.staff-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  color: #718079;
  font-size: 12px;
}

.staff-footer a {
  color: var(--staff-green-deep);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .staff-access-shell {
    width: min(680px, calc(100% - 28px));
    padding-top: 22px;
    align-content: start;
  }

  .staff-access-card {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .staff-welcome-panel {
    min-height: 390px;
    padding: 34px;
  }

  .staff-welcome-copy {
    padding: 52px 0 42px;
  }

  .staff-welcome-copy h1 {
    font-size: clamp(48px, 12vw, 68px);
  }

  .staff-form-panel {
    padding: 48px 34px;
  }
}

@media (max-width: 520px) {
  .staff-access-shell {
    width: min(100% - 18px, 460px);
    padding: 9px 0 18px;
    gap: 16px;
  }

  .staff-access-card {
    border-radius: 20px;
  }

  .staff-welcome-panel {
    min-height: 350px;
    padding: 26px 24px;
  }

  .staff-brand-mark {
    width: 40px;
    height: 40px;
  }

  .staff-welcome-copy {
    padding: 46px 0 34px;
  }

  .staff-welcome-copy p {
    margin-top: 20px;
    font-size: 15px;
  }

  .staff-access-note {
    padding: 13px 14px;
  }

  .staff-form-panel {
    padding: 40px 24px 34px;
  }

  .staff-form-heading h2 {
    font-size: 36px;
  }

  .staff-login-form {
    margin-top: 30px;
  }

  .staff-footer {
    padding: 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

