@font-face {
  font-family: "IBM Plex Sans";
  src: url('/static/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url('/static/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url('/static/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 900px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: #173554;
  background: #e8edf3;
}
.login-card {
  display: grid;
  grid-template-columns: 52% 48%;
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  background: #113b79;
  overflow: hidden;
  box-shadow: none;
}
.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 64px);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 50% 46%, #227bca 0, #185cac 50%, #113b79 100%);
}
.login-brand::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(130deg, #fff1, transparent 35%, #031b4a18 85%); }
.brand-center { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; transform: translateX(-40px); }

.login-wordmark {
  display: block;
  width: min(82%, 430px);
  height: auto;
  filter: brightness(0) invert(1);
}
.login-form-side { position: relative; z-index: 1; display: grid; min-width: 0; margin-left: -80px; border-radius: 140px 0 0 140px; background: #fff; }
.login-form-panel { width: 100%; max-width: 710px; justify-self: center; align-self: center; padding: 64px 72px; animation: form-enter .65s ease-out both; }
@keyframes form-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
h1 { font-size: 36px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.9px; font-weight: 600; }
.intro { color: #8290a1; font-size: 17px; margin: 0; }
form { margin-top: 38px; }
label { display: block; font-size: 16px; font-weight: 600; margin: 32px 0 12px; }
input:not([type=hidden]) { width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid #c5d6e8; border-radius: 0; font: inherit; font-size: 17px; color: #173554; background: transparent; transition: border-color 150ms; }
input::placeholder { color: #a0adbb; font-size: 16px; }
input:focus { outline: none; border-bottom-color: #2468ce; box-shadow: 0 1px 0 #2468ce; }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-toggle { position: absolute; top: 0; right: 8px; bottom: 1px; padding: 0 8px; border: 0; background: transparent; color: #245f9e; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.password-toggle:hover { color: #123b72; }
.caps-lock-hint { margin: 8px 0 0; color: #995622; font-size: 13px; font-weight: 600; }
.caps-lock-hint[data-enabled='false'] { color: #73869a; font-weight: 400; }
.caps-lock-hint[hidden] { display: none; }
button:focus-visible { outline: 3px solid #9bbfff; outline-offset: 3px; }
.button-dark { display: flex; align-items: center; justify-content: center; min-width: 180px; min-height: 52px; margin-top: 38px; padding: 14px 24px; border: 1px solid #111827; border-radius: 12px; background: #111827; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 150ms, transform 150ms, box-shadow 150ms; }
.button-dark:hover { background: #233a65; border-color: #233a65; transform: translateY(-2px); box-shadow: 0 8px 18px #11182726; }
.error { padding: 12px 14px; border-radius: 8px; background: #fff0f0; color: #a32a2a; font-size: 13px; line-height: 1.5; margin: 22px 0 -12px; }

@media (prefers-reduced-motion: reduce) {
  .login-form-panel { animation: none; }
  .button-dark { transition: none; }
  .button-dark:hover { transform: none; }
}
