/* ========== Tenant login: full-page blurred image + centered sign-in card ==========
 * Loaded after auth.css by resources/views/auth/login.blade.php only; every
 * rule is scoped to .auth-page--image so the password/verify screens that
 * share auth.css are untouched.
 */
.auth-login.auth-login--image {
  background: #0f1f3a;
}

.auth-page--image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px 16px;
  position: relative;
}

/* ---- Background image (fixed, covers the whole screen, slightly blurred) ---- */
.auth-page--image .auth-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--login-hero-bg, #e8f1fb);
}

.auth-page--image .hero-media {
  position: absolute;
  inset: 0;
}

.auth-page--image .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(4px);
  /* scale hides the soft transparent rim a blur leaves at the edges */
  transform: scale(1.04);
}

/* light tint so the card stands out without hiding the picture */
.auth-page--image .auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 50, 0.25);
}

.auth-page--image .hero-caption {
  display: none;
}

/* ---- Centered card ---- */
.auth-page--image .auth-panel {
  position: relative;
  z-index: 1;
  padding: 0;
  width: 100%;
  max-width: 400px;
  display: block;
}

.auth-page--image .auth-panel-inner {
  max-width: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 60px -12px rgba(5, 15, 35, 0.45);
  gap: 1.25rem;
}

.auth-page--image .panel-brand {
  display: block;
  max-width: 160px;
  max-height: 56px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.auth-page--image .auth-panel-inner header {
  text-align: center;
}

.auth-page--image .panel-title {
  font-size: 1.6rem;
}

.auth-page--image .input-shell {
  background: #ffffff;
}

.auth-page--image .input-shell input {
  padding: 0.7rem 0;
  font-size: 0.95rem;
}

.auth-page--image .auth-footer-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  text-align: center;
}

/* auth.css hides .auth-hero below 1024px — keep the background on every size */
@media (max-width: 1024px) {
  .auth-page--image {
    grid-template-columns: none;
  }
  .auth-page--image .auth-hero {
    display: block;
  }
}

@media (max-width: 480px) {
  .auth-login.auth-login--image {
    background: #0f1f3a;
  }
  .auth-page--image .auth-panel {
    padding: 0;
  }
  .auth-page--image .auth-panel-inner {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
}
