/* Split sign-in page: hero image left, brand + form + footer right. */
.login-body { margin: 0; background: var(--surface); }
.login-split { display: flex; min-height: 100vh; }

/* Left hero — full-height banner photo. The earthy gradient stays as a fallback
   base colour shown before/if the image loads. */
.login-hero {
  flex: 0 0 40%; min-height: 100vh;
  background:
    url("/static/setu_ui/img/LoginBanner.png") center / cover no-repeat,
    linear-gradient(150deg, #20301f 0%, #3a4a2c 45%, #6f4a2c 100%);
}

/* Right panel: logo (top) · form (centered) · footer (bottom). */
.login-panel {
  flex: 1; display: flex; flex-direction: column;
  padding: 0 56px; background: var(--surface);
}

.login-logo { display: flex; align-items: center; align-self: center; margin-top: 70px; }
.login-logo-img { height: 80px; width: auto; display: block; }

/* Form, vertically centered in the space between logo and footer. */
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; }
.login-form { width: 460px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; }
.login-group { display: flex; flex-direction: column; gap: 9px; }
.login-label { font-size: 15px; font-weight: 700; color: var(--brand); }
.login-input {
  width: 100%; height: 50px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 14px; color: var(--ink); font-family: inherit;
}
.login-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 87, 119, 0.12); }

.login-pw { position: relative; }
.login-pw .login-input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer;
  color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.pw-toggle:hover { color: var(--brand-dk); }

.login-submit {
  width: 100%; height: 50px; margin-top: 4px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
}
.login-submit:hover { background: var(--brand-dk); }

/* Footer: links · copyright · product line. */
.login-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 12.5px;
}
.lf-left, .lf-center, .lf-right { white-space: nowrap; }
.lf-left { color: var(--accent); }
.lf-left a { color: var(--accent); text-decoration: none; }
.lf-dot { margin: 0 8px; }
.lf-center { color: var(--muted); }
.lf-right { color: var(--brand); }
.lf-right a { color: var(--brand); text-decoration: none; }

/* Narrow screens: stack into a column with the hero as a short banner strip on
   top (using the landscape small crop), then the logo + full-width form below. */
@media (max-width: 880px) {
  .login-split { flex-direction: column; }
  .login-hero {
    flex: 0 0 auto; min-height: 150px;
    background-image:
      url("/static/setu_ui/img/LoginBannerSmall.png"),
      linear-gradient(150deg, #20301f 0%, #3a4a2c 45%, #6f4a2c 100%);
  }
  .login-panel { padding: 0 24px; }
  .login-logo { margin-top: 32px; }
  .login-logo-img { height: 56px; }
  .login-foot { flex-direction: column; gap: 6px; text-align: center; }
}

/* Auth error banner on the sign-in form. */
.login-error {
  display: flex; align-items: center; gap: 8px;
  background: #FBE9E7; color: var(--danger);
  border: 0.5px solid #F3C7C0; border-radius: var(--radius);
  padding: 9px 12px; font-size: 13px; margin-bottom: 4px;
}
.login-error i { font-size: 16px; }
