:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172329;
  background: #f6f8f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; letter-spacing: 0; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.login-header { padding: 24px 36px; }
.login-brand { min-height: 36px; display: flex; align-items: center; }
.login-brand .company-logo { display: block; width: 196px; max-width: 100%; height: auto; object-fit: contain; filter: brightness(0) opacity(.82); }
.login-main { display: grid; place-items: center; min-width: 0; padding: 32px 24px 64px; }
.login-content { width: 100%; max-width: 360px; min-width: 0; }
.login-heading { margin-bottom: 32px; }
h1 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 650; overflow-wrap: anywhere; }
form { display: grid; gap: 22px; }
.login-field { display: grid; gap: 8px; min-width: 0; }
label { font-size: 13px; font-weight: 600; }
input { width: 100%; min-width: 0; height: 48px; border: 1px solid #c9d5d9; border-radius: 6px; background: #fff; color: #172329; padding: 11px 13px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:hover { border-color: #9aadb4; }
input:focus { border-color: #087f72; box-shadow: 0 0 0 3px rgb(8 127 114 / 12%); }
input[aria-invalid="true"] { border-color: #bd4155; }
.password-control { position: relative; }
.password-control input { padding-right: 52px; }
.password-toggle { display: grid; place-items: center; position: absolute; right: 3px; top: 3px; width: 42px; height: 42px; background: transparent; border: 0; border-radius: 4px; color: #667581; }
.password-toggle:hover { color: #172329; background: #eff4f3; }
.password-toggle svg { width: 19px; height: 19px; }
button:focus-visible { outline: 3px solid #78bfb5; outline-offset: 3px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 4px; padding: 12px 20px; border: 1px solid #087f72; border-radius: 6px; background: #087f72; color: #fff; font-size: 14px; font-weight: 600; transition: background .15s; }
.login-submit:hover { background: #066c61; border-color: #066c61; }
.login-submit svg { width: 17px; height: 17px; }
.login-submit:disabled { cursor: wait; opacity: .75; }
.login-error, .session-notice { margin: -6px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.login-error { color: #ad3349; }
.session-notice { color: #667581; }
.login-footer { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 22px 24px; color: #78868e; font-size: 12px; }
.login-footer svg { width: 13px; height: 13px; }
@media (max-width: 600px) {
  .login-header { padding: 24px; }
  .login-main { padding: 32px 28px 48px; }
  h1 { font-size: 28px; }
}
@media (max-height: 600px) {
  .login-header { padding-block: 16px; }
  .login-main { padding-block: 20px; }
  .login-heading { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { input, .login-submit { transition: none; } }
