.app-shell.is-guest .shell {
  min-height: 100vh;
  padding: 0 !important;
}

.app-shell.is-guest {
  min-height: 100vh;
  overflow: hidden;
}

.staff-login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  color: #F8FAFC;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(109, 213, 247, 0.16), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(35, 90, 154, 0.24), transparent 32%),
    linear-gradient(135deg, #061424 0%, #071A2F 48%, #0A1D37 100%);
}

.staff-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(126, 162, 214, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(126, 162, 214, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
  opacity: 0.7;
}

.staff-login-page::after {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -2;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(76, 155, 232, 0.14), transparent 62%);
  filter: blur(18px);
}

.staff-login-orb {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.72;
}

.staff-login-orb--primary {
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  left: -10%;
  top: -14%;
  background: radial-gradient(circle, rgba(76, 155, 232, 0.22), transparent 68%);
}

.staff-login-orb--secondary {
  width: min(42vw, 480px);
  height: min(42vw, 480px);
  right: -8%;
  bottom: -14%;
  background: radial-gradient(circle, rgba(109, 213, 247, 0.16), transparent 70%);
}

.staff-login-panel {
  position: relative;
  width: min(100%, 1020px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.74fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 40, 68, 0.94), rgba(10, 29, 55, 0.97)) !important;
  border: 1px solid rgba(76, 155, 232, 0.28) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.staff-login-panel__accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 0%, rgba(109, 213, 247, 0.16), transparent 24%),
    linear-gradient(90deg, #235A9A 0%, #4C9BE8 44%, #6DD5F7 100%) top left / 100% 3px no-repeat;
}

.staff-login-branding,
.staff-login-form-card {
  position: relative;
  z-index: 1;
}

.staff-login-branding {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.staff-login-kicker,
.staff-login-copy__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(76, 155, 232, 0.32) !important;
  background: rgba(76, 155, 232, 0.14) !important;
  color: #BFD3EA !important;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.staff-login-kicker {
  padding: 0.42rem 0.75rem;
  margin-bottom: 1.35rem;
}

.staff-login-brand__logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 0 1.5rem;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.staff-login-copy {
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
}

.staff-login-copy__eyebrow {
  padding: 0.35rem 0.7rem;
}

.staff-login-copy h1 {
  margin: 0;
  max-width: 9ch;
  color: #F8FAFC !important;
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.staff-login-copy p {
  margin: 0;
  max-width: 520px;
  color: #BFD3EA !important;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.staff-login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.staff-login-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(7, 26, 47, 0.58);
  border: 1px solid rgba(76, 155, 232, 0.20);
  color: #DCEBFA;
  font-size: 0.86rem;
  font-weight: 750;
}

.staff-login-highlights i {
  color: #6DD5F7;
}

.staff-login-form-card {
  align-self: center;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(76, 155, 232, 0.12), transparent 36%),
    rgba(7, 26, 47, 0.70);
  border: 1px solid rgba(76, 155, 232, 0.24);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.staff-login-form-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.staff-login-form-card__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #235A9A, #4C9BE8);
  box-shadow: 0 14px 32px rgba(76, 155, 232, 0.28);
}

.staff-login-form-card h2 {
  margin: 0 0 0.2rem;
  color: #F8FAFC;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.staff-login-form-card p {
  margin: 0;
  color: #BFD3EA;
  line-height: 1.55;
}

.staff-login-form {
  display: grid;
  gap: 1rem;
}

.staff-login-field {
  display: grid;
  gap: 0.45rem;
}

.staff-login-field label {
  color: #DCEBFA !important;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.staff-login-input-wrap {
  position: relative;
}

.staff-login-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6DD5F7;
  opacity: 0.84;
  pointer-events: none;
}

.staff-login-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 1rem 0 2.85rem;
  border-radius: 16px;
  border: 1px solid rgba(76, 155, 232, 0.24) !important;
  background: rgba(6, 21, 37, 0.88) !important;
  color: #F8FAFC !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.staff-login-form input::placeholder {
  color: #8EA8C3 !important;
}

.staff-login-form input:focus {
  outline: none !important;
  border-color: #4C9BE8 !important;
  background: rgba(7, 26, 47, 0.96) !important;
  box-shadow: 0 0 0 4px rgba(76, 155, 232, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-1px);
}

.staff-login-form__submit {
  width: 100%;
  min-height: 56px;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #235A9A, #4C9BE8) !important;
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(76, 155, 232, 0.28) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.staff-login-form__submit:hover,
.staff-login-form__submit:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 20px 46px rgba(76, 155, 232, 0.36) !important;
}

.staff-login-form__submit i {
  font-size: 0.92rem;
}

.staff-login-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(76, 155, 232, 0.16);
  color: #8EA8C3;
  font-size: 0.86rem;
  text-align: center;
}

.staff-login-meta strong {
  color: #BFD3EA;
  white-space: nowrap;
}

.staff-login-panel .flash {
  max-width: none;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 139, 139, 0.26) !important;
  background: rgba(255, 139, 139, 0.10) !important;
}

.staff-login-panel .flash-success {
  border-color: rgba(79, 154, 58, 0.35) !important;
  background: rgba(79, 154, 58, 0.12) !important;
}

@media (max-width: 920px) {
  .app-shell.is-guest {
    overflow: auto;
  }

  .staff-login-page {
    align-items: flex-start;
    overflow: visible;
  }

  .staff-login-panel {
    grid-template-columns: 1fr;
  }

  .staff-login-branding {
    min-height: auto;
    padding-bottom: 0.5rem;
  }

  .staff-login-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .staff-login-page {
    padding: 1rem;
  }

  .staff-login-panel {
    padding: 1rem;
    border-radius: 24px;
  }

  .staff-login-brand__logo {
    width: min(100%, 260px);
  }

  .staff-login-copy h1 {
    font-size: 2.4rem;
  }

  .staff-login-highlights {
    margin-top: 1.35rem;
  }

  .staff-login-highlights span {
    width: 100%;
  }

  .staff-login-form-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-login-meta {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .staff-login-meta strong {
    white-space: normal;
  }
}
