:root {
  --staff-blue: #3b82f6;
  --staff-blue-dark: #2563eb;
  --staff-navy: #10264a;
  --staff-muted: #637696;
  --staff-border: #cbdaf0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #dbeafe;
}

.staff-login-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--staff-navy);
  background:
    linear-gradient(115deg, rgba(247, 251, 255, .76), rgba(218, 234, 253, .42)),
    url("../img/member-login-bg.jpg") center / cover fixed;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.staff-login-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.65), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(215,232,252,.18));
  content: "";
  pointer-events: none;
}

.staff-login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  padding: 40px 20px;
  align-items: center;
  justify-content: center;
}

.staff-login-card {
  width: min(720px, 100%);
  padding: clamp(36px, 5vw, 62px);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 30px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 80px rgba(15,39,71,.18);
  backdrop-filter: blur(15px);
}

.staff-login-header {
  margin-bottom: 36px;
  text-align: center;
}

.staff-login-brand-icon {
  margin-bottom: 16px;
  color: var(--staff-blue);
  font-size: 4rem;
  line-height: 1;
}

.staff-login-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  font-weight: 780;
  letter-spacing: -.045em;
}

.staff-login-header p {
  margin: 22px 0 0;
  color: var(--staff-muted);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.staff-login-accent {
  display: block;
  width: 48px;
  height: 3px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: var(--staff-blue);
}

.staff-login-message {
  display: flex;
  margin-bottom: 18px;
  padding: 13px 15px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e3a5f;
  background: #eff6ff;
  line-height: 1.4;
}

.staff-login-message--error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

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

.staff-login-field {
  position: relative;
  display: grid;
  min-height: 66px;
  margin: 0;
  grid-template-columns: 76px minmax(0, 1fr);
  overflow: hidden;
  border: 1.5px solid var(--staff-border);
  border-radius: 11px;
  background: rgba(255,255,255,.94);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.staff-login-field:focus-within {
  border-color: var(--staff-blue);
  box-shadow: 0 0 0 4px rgba(59,130,246,.13);
}

.staff-login-field-icon {
  display: grid;
  place-items: center;
  border-right: 1px solid #dbeafe;
  color: var(--staff-blue);
  background: #f8fbff;
  font-size: 1.45rem;
}

.staff-login-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 26px;
  color: var(--staff-navy);
  background: transparent;
  font: inherit;
  font-size: 1.15rem;
}

.staff-login-field input::placeholder {
  color: #7b8ba7;
  opacity: 1;
}

.staff-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #637696;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.staff-password-toggle:hover {
  color: var(--staff-blue-dark);
  background: #eff6ff;
}

.staff-login-field:has(.staff-password-toggle) input {
  padding-right: 60px;
}

.staff-login-submit {
  display: inline-flex;
  min-height: 70px;
  margin-top: 6px;
  padding: 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #4d91f7, #2f7be7);
  box-shadow: 0 12px 28px rgba(37,99,235,.23);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.staff-login-submit:hover {
  background: linear-gradient(135deg, var(--staff-blue), var(--staff-blue-dark));
  box-shadow: 0 15px 32px rgba(37,99,235,.3);
  transform: translateY(-2px);
}

.staff-login-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.staff-login-submit:focus-visible,
.staff-password-toggle:focus-visible {
  outline: 3px solid rgba(59,130,246,.38);
  outline-offset: 3px;
}

.staff-login-divider {
  display: grid;
  margin: 32px 0 24px;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  color: var(--staff-blue);
  text-align: center;
}

.staff-login-divider span {
  height: 1px;
  background: #cfe0f6;
}

.staff-login-divider i {
  display: grid;
  width: 42px;
  height: 42px;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  background: #edf5ff;
}

.staff-login-info {
  display: flex;
  padding: 22px 24px;
  align-items: flex-start;
  gap: 22px;
  border: 1px solid #cfe0f6;
  border-radius: 11px;
  background: linear-gradient(110deg, #f7fbff, #edf5ff);
}

.staff-login-info > i {
  color: var(--staff-blue);
  font-size: 2.35rem;
}

.staff-login-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.staff-login-info p {
  margin: 0;
  color: #4e6284;
  line-height: 1.5;
}

.staff-login-footer {
  display: flex;
  margin-top: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64789a;
  font-size: .94rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .staff-login-page {
    background-attachment: scroll;
  }

  .staff-login-shell {
    padding: 22px 14px;
  }

  .staff-login-card {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .staff-login-header {
    margin-bottom: 28px;
  }

  .staff-login-brand-icon {
    font-size: 3.2rem;
  }

  .staff-login-field {
    min-height: 60px;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .staff-login-field input {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .staff-login-submit {
    min-height: 60px;
    font-size: 1.12rem;
  }

  .staff-login-info {
    padding: 18px;
    gap: 15px;
  }

  .staff-login-info > i {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .staff-login-field,
  .staff-login-submit {
    transition: none;
  }
}
