* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--panel); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.login-layout { display: grid; grid-template-columns: 60% 40%; min-height: 100vh; min-height: 100dvh; }
.brand-panel { display: flex; align-items: center; justify-content: center; background: var(--brand-panel); }
.brand-logo { display: block; width: 397px; height: auto; }
.signin-panel { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 120px 40px; background: var(--panel); }
.presentation-controls { position: absolute; top: 28px; right: 28px; display: flex; align-items: center; gap: 12px; }
.presentation-controls form { display: flex; gap: 8px; }
.presentation-controls select, #language-apply { background: var(--panel); color: var(--muted); border: 1px solid transparent; border-radius: var(--radius); padding: 7px 8px; min-height: 36px; }
.presentation-controls select:hover { border-color: var(--border); }
.signin-form-container { width: 100%; max-width: 352px; }
h1 { margin: 0 0 8px; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -.6px; }
.subtitle { margin: 0 0 32px; color: var(--muted); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 500; }
.field input { display: block; width: 100%; height: 46px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); background: var(--input); }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
#password-toggle { position: absolute; right: 2px; top: 2px; width: 42px; height: 42px; border: 0; border-radius: var(--radius); color: var(--muted); background: transparent; display: flex; align-items: center; justify-content: center; }
#password-toggle[hidden] { display: none; }
.eye-slash { display: none; }
#password-toggle[data-visible="true"] .eye-slash { display: block; }
.signin-submit { width: 100%; min-height: 46px; margin-top: 8px; border: 0; border-radius: var(--radius); color: #fff; background: var(--button); font-weight: 600; }
.signin-submit:hover { background: var(--button-hover); color: var(--button-text); }
.copyright { position: absolute; bottom: 28px; left: 24px; right: 24px; color: var(--muted); text-align: center; font-size: 12px; }
.form-error { padding: 12px; margin-bottom: 20px; border-radius: var(--radius); color: var(--error); background: var(--error-bg); }
.errorlist { color: var(--error); padding-left: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1199px) { .login-layout { grid-template-columns: 56% 44%; } }
@media (max-width: 767px) { .login-layout { grid-template-columns: 1fr; } .brand-panel { min-height: 150px; } .brand-logo { width: 257.25px; } .signin-panel { min-height: calc(100dvh - 150px); padding: 100px 28px; } .presentation-controls { top: 20px; right: 20px; } }

.field small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

/* Choose company, forgot password and reset pages (shared look 2026-10-20). */
.signin-links { display: flex; justify-content: flex-end; margin: -6px 0 18px; }
.signin-links a { color: var(--link); text-decoration: none; font-size: 13px; }
.signin-links a:hover { text-decoration: underline; }
.company-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.company-list form { margin: 0; }
.company-role { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.signin-secondary { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.signin-secondary:hover { background: var(--hover); }
.signin-back { display: inline-block; margin-top: 18px; color: var(--link); text-decoration: none; font-size: 13px; }
.signin-back:hover { text-decoration: underline; }
.form-notice { padding: 12px; margin-bottom: 20px; border-radius: var(--radius); color: var(--info-tx); background: var(--info-bg); }

/* Session end notice (2026-10-22). */
.form-notice { padding: 12px; margin-bottom: 20px; border-radius: var(--radius); color: var(--info-tx); background: var(--info-bg); }
