/* ==========================================================================
   The sign-in page (templates/landing.html): split in two — a navy panel
   with the portal's name and its four stages on the left, the department
   login on white on the right.
   ========================================================================== */
body.is-login { margin: 0; min-height: 100vh; background: #ffffff; color: #17202e; overflow-x: hidden; }
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh;
  margin: 0; padding: 0; font-family: "Roboto", "Segoe UI", system-ui, sans-serif; }

/* ---- the navy side ---- */
.login-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 56px 64px; color: #ffffff;
  background: linear-gradient(160deg, #091324 0%, #0f2440 55%, #1b3b63 100%); }
.login-logo { width: 180px; height: auto; display: block; }
.login-kicker { display: block; color: #9fb3d1; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 10px; }
.login-side h1 { color: #ffffff; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1.1; margin: 0 0 16px;
  font-weight: 700; letter-spacing: -.01em; font-family: inherit; }
.login-lede { color: #c9d4e6; font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 480px; }
.login-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.login-steps li { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 7px 14px;
  font-size: .82rem; color: #dbe4f2; }

/* ---- the white side: the form ---- */
.login-main { display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; background: #ffffff; }
.login-box { width: 100%; max-width: 400px; }
.login-box h2 { font-size: 1.65rem; font-weight: 700; margin: 0 0 6px; color: #17202e; font-family: inherit; }
.login-sub { color: #46536a; margin: 0 0 24px; font-size: .98rem; }
.login-alert { margin: 0 0 16px; padding: 11px 14px; border-radius: 10px; font-size: .9rem;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.login-alert.is-error { background: #fbeae8; color: #ad3325; border-color: #f2c4bd; }
.login-alert.is-success { background: #e4f2e8; color: #1d6b3e; border-color: #b9dcc4; }
.login-box form { display: grid; gap: 14px; }
.login-field { display: grid; gap: 6px; }
.login-field > span:first-child { font-size: .82rem; font-weight: 600; color: #17202e; }
.login-field input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #dfe3ea; background: #ffffff; color: #17202e; font: inherit; font-size: .98rem; }
.login-field input::placeholder { color: #8a93a3; }
.login-field input:focus { outline: none; border-color: #2c5488; box-shadow: 0 0 0 3px rgba(44, 84, 136, .18); }
.login-pw { position: relative; display: block; }
.login-pw input { padding-right: 76px; }
.login-show { position: absolute; right: 7px; top: 7px; height: 32px; padding: 0 11px; border: 0; border-radius: 7px;
  background: #eef1f6; color: #0f2440; font: inherit; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; }
.login-show:hover { background: #e2e7ef; }
.login-go { height: 48px; border: 0; border-radius: 10px; background: #0f2440; color: #ffffff; font: inherit;
  font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 4px; }
.login-go:hover { background: #1b3b63; }
.login-go:focus-visible, .login-show:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.login-note { margin: 16px 0 0; font-size: .82rem; color: #6b7588; line-height: 1.5; }
.login-note a { color: #2563eb; text-decoration: none; font-weight: 500; }
.login-note a:hover { text-decoration: underline; }
.login-foot { margin-top: 40px; font-size: .78rem; color: #8a93a3; text-align: center; }

/* the light / dark switch: just the switch, no white box behind it */
html body.is-login .theme-float { position: absolute; top: 18px; right: 20px; padding: 0; background: transparent;
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- phones and narrow windows: the navy part on top, shorter ---- */
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-side { padding: 32px 24px; gap: 24px; }
  .login-logo { width: 140px; }
  .login-steps { display: none; }
  .login-main { padding: 32px 20px 40px; justify-content: flex-start; }
}
