/* Login refinements keep the shared Legal Unit palette and serif headings. */
.login-page { grid-template-columns: 43% 57%; min-height: 100vh; min-height: 100svh; }
.login-story { padding: clamp(28px, 4vw, 64px); isolation: isolate; }
.login-story::after { font-size: clamp(220px, 29vw, 440px); right: 24px; bottom: 32px; opacity: .02; z-index: -1; animation: login-watermark 1.2s ease-out both; }
.login-story .brand { position: relative; z-index: 1; letter-spacing: 1.6px; }
.login-story .brand-subtitle { font-size: 10px; letter-spacing: 1.4px; }
.story-content { padding: 64px 0; animation: login-entrance 600ms ease-out both; }
.story-content h1 { font-size: clamp(42px, 4.2vw, 64px); line-height: 1.14; letter-spacing: -1.6px; margin: 22px 0 28px; }
.story-content > p { max-width: 370px; font-size: 15px; line-height: 1.8; color: #bccfc6; }
.story-content .eyebrow { color: #a9c2b6; font-size: 11px; letter-spacing: 1.7px; text-transform: uppercase; }
.story-bottom { font-size: 10px; color: #acc1b7; letter-spacing: 1.4px; }
.login-main { padding: 64px 40px 28px; min-height: 100vh; min-height: 100svh; background: #fbfcfa; }
.login-box { max-width: 400px; margin: auto 0; padding: 24px 0 44px; animation: login-entrance 500ms ease-out both; }
.login-box > .eyebrow { color: #60746a; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; }
.login-box h2 { font-size: 42px; line-height: 1.2; margin: 14px 0 12px; }
.login-box .intro { font-size: 15px; color: #5e7067; margin-bottom: 32px; }
.login-box form > label { font-size: 14px; font-weight: 500; color: #40564b; margin: 22px 0 9px; }
.login-box input { height: 50px; padding: 12px 14px; border: 1px solid #cedbd1; background: #f7f9f6; border-radius: 8px; font-size: 16px; transition: border-color 150ms, box-shadow 150ms, background-color 150ms; }
.login-box input::placeholder { color: #718078; }
.login-box input:hover { border-color: #94ada0; }
.login-box input:focus { background: white; border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px #21675b20; }
.login-box input[aria-invalid="true"] { border-color: #a05232; }
.login-box input:autofill { background-color: #eef4ee; color: var(--ink); }
.login-box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #eef4ee inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.password-field input { padding-right: 56px; }
.password-field button { display: grid; place-items: center; width: 44px; height: 44px; top: 3px; right: 3px; padding: 11px; border-radius: 6px; color: #586e62; }
.password-field button:hover { background: #e6eee7; color: var(--teal); }
.password-field svg { width: 22px; height: 22px; }
.password-slash { display: none; }
#toggle-password[aria-pressed="true"] .password-slash { display: block; }
.login-submit { height: 50px; margin-top: 22px; padding: 12px 16px; border-radius: 8px; font-size: 15px; transition: background-color 180ms; }
.login-submit:hover { transform: none; }
.login-submit #login-submit-label { font-size: inherit; }
.login-note { margin-top: 20px; padding-top: 0; border: 0; align-items: flex-start; gap: 8px; color: #607469; font-size: 12px; line-height: 1.6; }
.login-note svg { width: 17px; height: 19px; flex-shrink: 0; }
.login-footer { width: 100%; padding-top: 20px; text-align: center; }
.login-footer .login-copyright { position: static; color: #607469; font-size: 11px; }
.login-box .login-credit { display: block; margin-top: 28px; padding: 20px 16px; border-top: 1px solid #cedbd1; border-radius: 0 0 8px 8px; background: #f0f5ef; text-align: center; line-height: 1.5; }
.login-credit > span { display: block; color: #52675b; font-size: 14px; }
.login-credit > strong { display: block; margin-top: 5px; color: #204d43; font-size: 18px; font-weight: 600; }
.login-box .form-error { font-size: 13px; line-height: 1.5; }
.login-page button:focus-visible, .login-page a:focus-visible { outline: 2px solid #508677; outline-offset: 3px; }
@keyframes login-entrance { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes login-watermark { from { opacity: 0; } to { opacity: .02; } }
@media (max-width: 950px) {
  .login-story { padding: 32px; }
  .login-main { padding-inline: 32px; }
  .story-content h1 { font-size: 44px; }
}
@media (max-width: 720px) {
  .login-page { display: flex; flex-direction: column; }
  .login-story { flex-shrink: 0; padding: 20px 24px; }
  .login-story::after, .story-content, .story-bottom { display: none; }
  .login-story .brand { margin: 0; font-size: 12px; }
  .login-story .brand-mark { width: 38px; height: 42px; font-size: 29px; }
  .login-story .brand-subtitle { font-size: 9px; margin-top: 5px; }
  .login-main { flex: 1; min-height: 0; padding: 32px 24px 22px; }
  .login-box { padding: 8px 0 28px; }
  .login-box h2 { font-size: 36px; }
  .login-box .intro { margin-bottom: 26px; }
  .login-footer { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-content, .login-box, .login-story::after { animation: none; }
  .login-page input, .login-page .login-submit { transition: none; }
}
