body.staff-login-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--lucky-text);
  background: var(--lucky-pink-soft) !important;
  background-image: none !important;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

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

.staff-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 20px;
}

.staff-login-layout {
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid var(--lucky-border);
  border-radius: var(--radius-lg);
  background: var(--lucky-surface);
  box-shadow: var(--lucky-shadow);
}

.staff-login-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 36px 38px 28px;
  background: var(--lucky-surface);
}

.staff-login-logo-wrap {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--lucky-gold);
  border-radius: var(--radius-lg);
  background: var(--lucky-yellow);
}

.staff-login-logo-wrap img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.staff-login-heading {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lucky-border);
}

.staff-login-heading h1,
.staff-login-heading p {
  margin: 0;
  letter-spacing: 0;
}

.staff-login-heading h1 {
  color: var(--lucky-brown-deep);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.staff-login-section-label {
  margin-top: 6px !important;
  color: var(--lucky-text-muted);
  font-size: 15px;
  font-weight: 600;
}

.staff-login-form {
  display: grid;
  gap: 18px;
}

.staff-login-form label {
  display: grid;
  gap: 7px;
  color: var(--lucky-brown-deep);
  font-size: 14px;
  font-weight: 600;
}

.staff-login-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--lucky-border) !important;
  border-radius: var(--radius-md) !important;
  outline: 0;
  color: var(--lucky-text);
  background: var(--lucky-white);
  font: inherit;
  font-size: 16px;
}

.staff-login-form input::placeholder {
  color: var(--lucky-text-muted);
  opacity: 0.76;
}

.staff-login-page :is(input, button):focus-visible {
  outline: 3px solid var(--lucky-focus-ring);
  outline-offset: 2px;
}

.staff-login-form input:focus-visible {
  border-color: var(--lucky-gold) !important;
  box-shadow: none !important;
}

.staff-login-button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 10px 16px;
  border: 1px solid var(--lucky-yellow) !important;
  border-radius: var(--radius-md) !important;
  color: var(--lucky-brown-deep) !important;
  background: var(--lucky-yellow) !important;
  background-image: none !important;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.staff-login-button:hover {
  border-color: var(--lucky-yellow-hover) !important;
  background: var(--lucky-yellow-hover) !important;
}

.staff-login-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.staff-login-message {
  min-height: 23px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--lucky-text-muted);
  font-size: 14px;
}

.staff-login-message:not(:empty) {
  padding: 10px 12px;
  border: 1px solid var(--lucky-border);
  border-radius: var(--radius-md);
  background: var(--lucky-surface-muted);
}

.staff-login-message.is-error {
  border-color: var(--lucky-danger-border);
  color: var(--lucky-danger);
  background: var(--lucky-danger-soft);
}

.staff-login-message.is-ok {
  color: var(--lucky-success);
  background: color-mix(in srgb, var(--lucky-success) 10%, var(--lucky-surface));
}

.staff-login-footnote {
  margin: 10px 0 0;
  color: var(--lucky-text-muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .staff-login-shell {
    align-items: start;
    padding: 16px 12px 28px;
  }

  .staff-login-panel {
    padding: 28px 20px 22px;
  }

  .staff-login-logo-wrap {
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
  }

  .staff-login-logo-wrap img {
    width: 62px;
    height: 62px;
  }

  .staff-login-heading h1 {
    font-size: 24px;
  }
}
