/* ==========================================================================
   YOJ FMS — login page
   Full-bleed marketing background (static/images/login_bg.png) with a frosted
   login panel anchored to the right, so the artwork's baked-in headline and
   feature list stay readable on the left.
   ========================================================================== */

body.login-page {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: flex;
  /* AdminLTE's .login-page forces flex-direction:column, which makes flex-end
     act on the vertical axis and centres horizontally. Force row so flex-end
     pushes the panel to the RIGHT and align-items centres it vertically. */
  flex-direction: row;
  align-items: center;
  justify-content: flex-end; /* panel sits on the right (over the buildings) */
  background-color: #eef1f3;
  background-image: url("../images/yojfms_login1.png");
  background-repeat: no-repeat;
  background-position: center center;
  /* `cover` fills the whole viewport (may crop the artwork's edges) so there
     are no blank side bars. Switch back to `contain` to show the whole banner
     at a controlled scale, or set e.g. `background-size: 80% auto;` to shrink. */
  background-size: cover;
}

/* The whole box (logo + card) becomes one frosted, readable surface. */
.login-box {
  width: 380px;
  max-width: 100%;
  margin: 0 2vw 0 0;
  padding: 34px 32px 28px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

/* Let the frosted box show through the AdminLTE card. */
.login-box .card {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
}
.login-box .login-card-body {
  padding: 0;
  background: transparent;
}

/* Brand lockup, back in normal flow (was absolutely positioned). */
.login-logo {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  margin: 0 0 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.9rem;
}
.login-logo a {
  color: #1f2a37;
}
.login-logo a b {
  color: #e4002b;
}
/* Copyright strip pinned to the bottom-centre of the login page. */
.login-copyright {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd0d6;
}
.login-copyright img {
  height: 20px;
  width: auto;
}

.login-client-name {
  font-size: 1.15rem;
  padding-left: 6px;
  color: #1f2a37;
  font-weight: 600;
}

/* Red accent sampled from the "YOJ" logo in the artwork (#b80810). */
.login-box .btn-primary {
  background-color: #b80810;
  border-color: #b80810;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.login-box .btn-primary:hover,
.login-box .btn-primary:focus {
  background-color: #99060d;
  border-color: #99060d;
  box-shadow: 0 0 0 0.2rem rgba(184, 8, 16, 0.25);
}

.login-box .input-group-text {
  background-color: #f6f7f8;
  color: #6b7280;
}
.login-box .form-control:focus {
  border-color: #e4002b;
  box-shadow: 0 0 0 0.2rem rgba(228, 0, 43, 0.15);
}

.login-box a {
  color: #e4002b;
}
.login-box a:hover {
  color: #c60025;
}

/* Stack for tablets / phones: centre the panel over the artwork. */
@media (max-width: 768px) {
  body.login-page {
    justify-content: center;
    padding: 20px;
    background-position: right center;
  }
  .login-box {
    margin: 0;
  }
}
