/* Styles specific to the login page only */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-inner {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.login-logo {
  display: block;
  max-width: 600px;
  max-height: 600px;
  object-fit: contain;
}

/* Make login inputs slightly shorter and centered */
.login-inner .form-control {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Put logo and form on separate rows */
.login-inner > img.login-logo {
  margin-bottom: 2.25rem;
}

/* Increase vertical spacing between form rows */
.login-inner .form-group,
.login-inner .mb-3 {
  margin-bottom: 1.6rem; /* slightly more space between inputs */
}

.login-inner .btn-primary {
  min-width: 140px;
  margin-top: 1.2rem; /* more separation from inputs */
}

/* Center labels and make them smaller */
.login-inner label {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #333;
}

/* Extra gap between inputs */
.login-inner .form-group,
.login-inner .mb-3 {
  margin-bottom: 1.8rem; /* more vertical spacing */
}

/* For very small screens reduce widths */
@media (max-width: 420px) {
  .login-inner .form-control {
    max-width: 320px;
  }
  .login-logo {
    width: 140px;
    height: 140px;
  }
}

/* Background layer wrapper for login, using the provided pluma SVG */
.login-bg-layer {
  position: relative;
}

/* Center the login content vertically and horizontally */

.login-bg-layer { position: relative; }

/* Center the login content vertically and horizontally */
.login-bg-layer { display: flex; align-items: flex-start; justify-content: center; min-height: calc(100vh - 3rem); padding: 4rem 0; overflow: hidden; }

/* Apply pluma background to the body for login pages so it sits outside the container */
body.login-bg {
  background-image: url("/static/img/Pluma.b69c9480b612.svg");
  background-repeat: no-repeat;
  background-position: right 20% top -60px; /* moved higher and to the right */
  background-size: 60% auto;
}

/* Remove scrollbar on login page per request */
body.login-bg {
  /* prevent page scrolling on the login view while keeping content accessible */
  overflow: hidden;
}

/* When JS hides inline error elements we keep them accessible to screen readers via this helper */
.sr-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Fallback: fixed-position pluma image shown outside container when background isn't visible */
.login-pluma {
  /* Pluma positioned at the bottom so content appears at the top-center */
  position: absolute;
  bottom: -40px; /* placed lower than viewport so it's visually at the bottom */
  right: -40px;
  width: 520px;
  height: auto;
  pointer-events: none; /* ensure it doesn't capture clicks */
  z-index: 0; /* keep it behind the .login-inner content */
  opacity: 0.12; /* subtle so it doesn't obscure UI */
}

/* legacy selector: if a page used .login-bg wrapper, ensure pluma is background there too */
.login-bg .login-pluma { position: absolute; z-index: 0; }
.login-logo-row{display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem}

/* ensure inner content sits above the background layer */
.login-bg-layer .login-inner {
  position: relative;
  z-index: 1;
}

/* target the image inside the logo row */
.login-logo-row img.login-logo {
  display: block;
  margin: 0 auto 1.5rem;
}
