:root {
  color-scheme: light;
  --staff-ink: #0b2742;
  --staff-muted: #52677a;
  --staff-paper: #fff;
  --staff-cream: #f5f9fd;
  --staff-plum: #0767c8;
  --staff-plum-dark: #0b4d91;
  --staff-coral: #f2b827;
  --staff-line: #d5e0ea;
  --staff-danger: #8c2630;
  --staff-shadow: 0 28px 75px rgb(11 39 66 / 14%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.staff-auth-page {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgb(244 191 69 / 22%), transparent 28rem),
    radial-gradient(circle at 85% 80%, rgb(7 103 200 / 14%), transparent 30rem),
    var(--staff-cream);
  color: var(--staff-ink);
  font-family: "Nunito Sans Variable", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.staff-skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: var(--staff-ink);
  color: white;
  transform: translateY(-160%);
}

.staff-skip-link:focus {
  transform: translateY(0);
}

.staff-auth-header {
  display: flex;
  align-items: center;
  width: min(100% - 2rem, 72rem);
  min-height: 5.3rem;
  margin-inline: auto;
}

.staff-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.staff-auth-brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0.15rem;
  border: 1px solid rgb(11 39 66 / 12%);
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 22px rgb(11 39 66 / 16%);
  object-fit: contain;
}

.staff-auth-brand strong,
.staff-auth-brand small {
  display: block;
}

.staff-auth-brand strong {
  font-family: "Fraunces Variable", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.1;
}

.staff-auth-brand small {
  margin-top: 0.15rem;
  color: var(--staff-muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-auth-main {
  display: grid;
  width: min(100% - 2rem, 34rem);
  min-height: calc(100vh - 8rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4.5rem) 0 3rem;
  align-content: start;
}

.staff-auth-card {
  padding: clamp(1.5rem, 6vw, 3.25rem);
  border: 1px solid rgb(24 33 63 / 10%);
  border-radius: 1.8rem;
  background: rgb(255 255 255 / 97%);
  box-shadow: var(--staff-shadow);
}

.staff-auth-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--staff-plum-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.staff-auth-card h1 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces Variable", Georgia, serif;
  font-size: clamp(2.2rem, 9vw, 3.35rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.staff-auth-intro {
  margin: 0 0 1.75rem;
  color: var(--staff-muted);
}

.staff-auth-form {
  display: grid;
  gap: 1rem;
}

.staff-form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 850;
}

.staff-form-field input:not([type="checkbox"]):not([type="radio"]),
.staff-form-field select,
.staff-form-field textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.72rem 0.85rem;
  border: 1.5px solid var(--staff-line);
  border-radius: 0.8rem;
  background: white;
  color: var(--staff-ink);
  font: inherit;
}

.staff-form-field input:focus-visible,
.staff-form-field select:focus-visible,
.staff-form-field textarea:focus-visible,
.staff-auth-button:focus-visible,
.staff-auth-card a:focus-visible,
.staff-auth-link-button:focus-visible {
  outline: 3px solid #0767c8;
  outline-offset: 3px;
}

.staff-form-field-error input {
  border-color: var(--staff-danger) !important;
  background: #fff7f7 !important;
}

.staff-form-help,
.staff-form-error,
.staff-form-errors {
  margin-top: 0.4rem;
  font-size: 0.82rem;
}

.staff-form-help {
  color: var(--staff-muted);
}

.staff-form-help ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.staff-form-error,
.staff-form-errors {
  color: var(--staff-danger);
  font-weight: 720;
}

.staff-form-error p,
.staff-form-errors p {
  margin: 0.2rem 0;
}

.staff-form-errors,
.staff-auth-messages {
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.75rem;
  background: #fff0f0;
}

.staff-auth-messages {
  background: #e9f8f0;
  color: #245f4c;
  font-weight: 750;
}

.staff-auth-messages p {
  margin: 0;
}

.staff-auth-button {
  display: inline-flex;
  width: 100%;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--staff-coral);
  color: #251b2a;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 9px 22px rgb(189 71 63 / 18%);
  cursor: pointer;
}

.staff-auth-button:hover {
  transform: translateY(-1px);
}

.staff-auth-button-google {
  border-color: var(--staff-line);
  background: white;
  color: var(--staff-ink);
  box-shadow: 0 4px 14px rgb(24 33 63 / 8%);
}

.staff-auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 1.2rem;
  gap: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 780;
}

.staff-auth-links a,
.staff-auth-return a,
.staff-auth-link-button {
  color: var(--staff-plum-dark);
  text-underline-offset: 0.2em;
}

.staff-auth-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.staff-auth-divider {
  display: flex;
  align-items: center;
  margin: 1.4rem 0;
  color: var(--staff-muted);
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.8rem;
  text-transform: uppercase;
}

.staff-auth-divider::before,
.staff-auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--staff-line);
  content: "";
}

.staff-auth-note,
.staff-auth-return {
  margin: 1.4rem 0 0;
  color: var(--staff-muted);
  font-size: 0.82rem;
  text-align: center;
}

.staff-auth-return {
  margin-top: 1.2rem;
}

@media (max-width: 36rem) {
  .staff-auth-header {
    min-height: 4.5rem;
  }

  .staff-auth-main {
    width: min(100% - 1rem, 34rem);
    padding-top: 0.5rem;
  }

  .staff-auth-card {
    border-radius: 1.25rem;
  }

  .staff-auth-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
