/* Staff log in (/staff/login, 4 Oct 2026): the back-end inspiration's admin login, rebuilt as ICCF code with its sizes kept
   (100px page padding, 50px on phones; the card's top panel 60/30/40px, 40/15px on phones; the body 60/40/40px, 30/20px on
   phones; 10px corners; 30px title, 24px on phones; 17px lead; 16px labels; 50px fields; a 50px button). ICCF's changes: its
   colours (primary and primary-dark, not purple), its photo, a tilted rounded-square outline at the bottom left (not a ring at
   the top right), a soft curved edge under the top panel (not a triangle), no capitals, a visible focus ring. */

.staff_login_body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--color-primary-dark);
}

.staff_login {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 16px;
  overflow: hidden;
  background-color: var(--color-primary);
  background-image: url("../../images/guide-program-hospital.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
}

/* the tint over the photo */
.staff_login::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-color: var(--color-primary-dark);
  opacity: 0.82;
}

@media (max-width: 575px) {
  .staff_login {
    padding: 50px 16px;
  }
}

.staff_login__area {
  position: relative;
  width: 100%;
  max-width: 540px;
}

/* ICCF's shape: a tilted rounded square outline, low on the left (the inspiration has a blurred ring top right) */
.staff_login__area::after {
  position: absolute;
  left: -90px;
  bottom: -70px;
  z-index: -1;
  width: 210px;
  height: 210px;
  content: "";
  border: 32px solid rgb(255 255 255 / 0.08);
  border-radius: 48px;
  transform: rotate(18deg);
  box-sizing: border-box;
}

@media (max-width: 575px) {
  .staff_login__area::after {
    display: none;
  }
}

.staff_login__card {
  overflow: hidden;
  background-color: var(--color-primary-dark);
  border-radius: 10px;
}

.staff_login__top {
  position: relative;
  z-index: 1;
  padding: 60px 30px 40px;
  text-align: center;
  background-color: var(--color-primary);
  border-radius: 10px 10px 50% 50% / 10px 10px 24px 24px;
}

@media (max-width: 575px) {
  .staff_login__top {
    padding: 40px 15px;
  }
}

.staff_login__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 500;
  color: #fff;
}

.staff_login__title strong {
  font-weight: 700;
}

.staff_login__lead {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #fff;
}

@media (max-width: 575px) {
  .staff_login__title {
    font-size: 24px;
  }

  .staff_login__lead {
    font-size: 16px;
  }
}

.staff_login__body {
  padding: 60px 40px 40px;
}

@media (max-width: 575px) {
  .staff_login__body {
    padding: 30px 20px;
  }
}

.staff_login__banner {
  margin: 0 0 20px;
}

.staff_login__banner.is_hidden,
.staff_login .field_error.is_hidden {
  display: none;
}

.staff_login__form {
  margin: 0;
}

.staff_login__group {
  margin: 0 0 20px;
}

.staff_login__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

/* light labels on the dark body (white at 80%: 9.1:1 on the dark shade) */
.staff_login__label {
  display: block;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: rgb(255 255 255 / 0.8);
}

.staff_login__input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background-color: transparent;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 5px;
  box-sizing: border-box;
}

.staff_login__input:focus {
  border-color: #fff;
  outline: 3px solid rgb(255 255 255 / 0.9);
  outline-offset: 2px;
}

.staff_login__input[aria-invalid="true"] {
  border-color: #ffb4a8;
}

.staff_login .field_error {
  color: #ffd3cc;
}

.staff_login__forgot {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: rgb(255 255 255 / 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .staff_login__forgot:hover {
    color: #fff;
  }
}

.staff_login__forgot:focus-visible,
.staff_login__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.staff_login__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 15px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  background-color: var(--color-primary);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 5px;
}

@media (hover: hover) {
  .staff_login__button:hover {
    background-color: #0a3f70;
  }
}

.staff_login__other {
  margin: 20px 0 0;
  font-size: 15px;
  text-align: center;
  color: rgb(255 255 255 / 0.8);
}
