:root {
  --staff-card-border: #357141;
  --staff-green-dark: #1b5e28;
  --staff-green-mid: #2d8a39;
  --staff-green-font: #7ada87;
  --staff-green-pale: #5b9863;
  --staff-input-bg: #f0f0f0;
  --staff-input-border: #d0cece;
  --staff-ink: #1a1a1a;
  --staff-muted: #6b7280;
}

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

html,
body.staff-login {
  min-height: 100%;
  margin: 0;
}

body.staff-login {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--staff-ink);
  background: #1b5e28;
}

.staff-login-topbar {
  background: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  min-height: 72px;
}

.staff-login-topbar img {
  height: 48px;
  width: auto;
  display: block;
}

.staff-login-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 56px;
  background: #1b5e28 url("images/k-staff-login-bg.jpg") center / cover no-repeat;
  overflow: hidden;
}

.staff-login-mark {
  position: absolute;
  right: 6%;
  top: 18%;
  width: min(28vw, 280px);
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}

.staff-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 2px solid var(--staff-card-border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 40, 20, 0.28);
  overflow: hidden;
}

.staff-login-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 28px;
  background: var(--staff-green-dark) url("images/staff-login-card-top-bg.jpg") center bottom / cover no-repeat;
  color: #fff;
  min-height: 108px;
}

.staff-login-card-head img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.staff-login-card-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.staff-login-card-head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--staff-green-font);
  line-height: 1.3;
}

.staff-login-card-body {
  padding: 28px 28px 32px;
}

.staff-login-card-body h2 {
  margin: 0 0 4px;
  font-size: 1.65rem;
  font-weight: 700;
}

.staff-login-lead {
  margin: 0 0 22px;
  color: var(--staff-muted);
  font-size: 0.95rem;
}

.staff-login-card-body label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.staff-login-card-body .form-control {
  background: var(--staff-input-bg);
  border: 1px solid var(--staff-input-border);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  box-shadow: none;
}

.staff-login-card-body .form-control:focus {
  background: #fff;
  border-color: var(--staff-green-mid);
  box-shadow: 0 0 0 0.2rem rgba(45, 138, 57, 0.18);
}

.staff-login-card-body .mb-3 {
  margin-bottom: 1.05rem !important;
}

.btn-staff-login {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--staff-green-dark);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 16px;
}

.btn-staff-login:hover,
.btn-staff-login:focus {
  background: var(--staff-green-mid);
  color: #fff;
}

.btn-staff-login:disabled {
  opacity: 0.7;
}

.staff-login-forgot {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--staff-green-pale);
  text-decoration: none;
  font-size: 0.92rem;
}

.staff-login-forgot:hover {
  color: var(--staff-green-dark);
  text-decoration: underline;
}

.staff-login-alert {
  display: none;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.staff-login-alert.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .staff-login-mark {
    width: 140px;
    top: auto;
    bottom: 16px;
    right: 12px;
    opacity: 0.55;
  }

  .staff-login-topbar {
    padding: 10px 16px;
    min-height: 60px;
  }

  .staff-login-topbar img {
    height: 38px;
  }

  .staff-login-stage {
    min-height: calc(100vh - 60px);
    padding: 24px 12px 40px;
    align-items: flex-start;
  }
}
