/* Keep login at original size; the rest of the app uses html { zoom: 1.25 }. */
html:has(body.auth-page) {
  zoom: 1;
}

/* Full-screen sign-in shell: deep navy canvas with two blue light sources. */
.auth-page {
  min-height: 100vh;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  background-color: #01070f;
  background-image:
    radial-gradient(68rem 44rem at 44% 46%, rgba(23, 116, 205, 0.58), transparent 64%),
    radial-gradient(44rem 32rem at 82% 92%, rgba(14, 78, 150, 0.45), transparent 66%),
    radial-gradient(34rem 26rem at 95% 22%, rgba(74, 44, 116, 0.4), transparent 68%),
    linear-gradient(160deg, #01060e 0%, #02122a 48%, #041b3d 100%);
  background-attachment: fixed;
}

/* Line-art of the LIFTUP plant, ghosted into the lower half of the canvas.
   `screen` drops the sketch's black field and keeps only the white strokes. */
.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  /* The sign-in block is centred in the viewport, so the sketch is anchored to the
     centre too — that keeps the tower's sign behind the page logo at any window height.
     The fixed width keeps the offset exact regardless of window width as well. */
  background: url("../images/liftup-building-sketch.png") no-repeat center calc(50% - 101px);
  background-size: 87.5rem auto;
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.auth-page__main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 2rem;
}

.auth-page__footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.auth-shell {
  width: 100%;
  max-width: 27rem;
}

/* Brand lockup above the card */
.auth-brand {
  text-align: center;
  margin-bottom: 2.25rem;
}

.auth-brand__logo {
  width: 13rem;
  max-width: 70%;
  height: auto;
  filter: drop-shadow(0 0.5rem 1.5rem rgba(0, 0, 0, 0.45));
}

/* Card */
.auth-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  color: #16202e;
  box-shadow: 0 1.75rem 3.5rem -1.25rem rgba(0, 0, 0, 0.6);
}

.auth-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.auth-card__title {
  position: relative;
  margin: 0;
  padding-left: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b2545;
}

.auth-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 3px;
  border-radius: 2px;
  background: #1ba8e0;
}

/* Labelled inputs with a leading glyph */
.auth-field {
  margin-bottom: 1.1rem;
}

.auth-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a5768;
}

.auth-field__control {
  position: relative;
}

.auth-field__control .form-control {
  height: 2.75rem;
  padding-left: 2.4rem;
  border-radius: 0.6rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.9rem;
}

.auth-field__control .form-control:focus {
  border-color: #1ba8e0;
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(27, 168, 224, 0.18);
}

.auth-field__control--with-toggle .form-control {
  padding-right: 2.6rem;
}

.auth-field__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa7b8;
  pointer-events: none;
}

.auth-field__toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #9aa7b8;
}

.auth-field__toggle:hover {
  color: #0b2545;
}

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0.9rem;
  font-size: 0.85rem;
  color: #4a5768;
}

.auth-remember .form-check-input {
  margin: 0;
  border-color: #cbd5e1;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0d6efd;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.9rem;
  border: 0;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(100deg, #0b5ed7 0%, #1177e0 55%, #1ba8e0 100%);
  box-shadow: 0 0.75rem 1.5rem -0.6rem rgba(11, 94, 215, 0.75);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover {
  color: #fff;
  filter: brightness(1.07);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-alert {
  border: 0;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  padding: 0.7rem 0.9rem;
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 1.35rem;
  }

  .auth-brand__logo {
    width: 10rem;
  }
}
