body.auth-screen { overflow: auto; background: #f7f7f2; color: #19241f; }
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); font-family: 'Segoe UI', Arial, sans-serif; }
.login-visual { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: clamp(32px, 4vw, 64px); color: #f5f6f1; background: #162326; }
.login-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .3; background-image: linear-gradient(#ffffff0c 1px, transparent 1px), linear-gradient(90deg, #ffffff0c 1px, transparent 1px); background-size: 48px 48px; }
.login-visual::after { content: ''; position: absolute; z-index: -1; width: 560px; height: 560px; right: -260px; bottom: -240px; border-radius: 50%; background: radial-gradient(circle, #c6ff6a28, transparent 68%); }
.login-brand { display: flex; align-items: center; gap: 12px; width: fit-content; color: inherit; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.6px; }
.login-mark { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #192620; background: #c8f79a; font-weight: 850; font-size: 29px; }
.login-mark > span { position: absolute; right: 4px; top: 1px; font-size: 15px; }
.login-brand small { display: block; margin-top: 4px; color: #aabbb7; font-size: 10px; font-weight: 400; letter-spacing: 1.3px; text-transform: uppercase; }
.login-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: #c4d1cc; }
.login-eyebrow > span:first-child { width: 7px; height: 7px; background: #c8f79a; border-radius: 50%; box-shadow: 0 0 0 4px #c8f79a12; }
.login-hero h1 { margin: 0; font-size: clamp(42px, 4.8vw, 72px); font-weight: 750; letter-spacing: -2.8px; line-height: 1.06; }
.login-highlight { color: #c8f79a; }
.login-intro { max-width: 380px; margin: 22px 0 30px; color: #b8c9c4; font-size: 15px; line-height: 1.7; }
.login-ledger { max-width: 440px; border: 1px solid #ffffff1f; background: #ffffff06; border-radius: 16px; padding: 18px; box-shadow: 0 20px 40px #0002; transform: rotate(-2deg); }
.ledger-caption { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; font-size: 11px; color: #c6d2ce; }
.ledger-dot { width: 6px; height: 6px; background: #b9a1f7; border-radius: 50%; }
.ledger-event { margin-left: auto; font-variant-numeric: tabular-nums; color: #91a7a0; }
.ledger-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ledger-card { min-width: 0; padding: 14px 10px; background: #f6f7f0; border-radius: 8px; color: #1c3029; }
.ledger-card strong { display: block; padding-bottom: 10px; font-size: 12px; border-bottom: 1px solid #cbd4c9; }
.ledger-sides { display: grid; grid-template-columns: 1fr 1fr; padding-top: 10px; }
.ledger-sides > span { display: flex; flex-direction: column; gap: 10px; min-width: 0; text-align: center; }
.ledger-sides > span + span { border-left: 1px solid #cbd4c9; }
.ledger-sides small { font-size: 9px; color: #657a6f; }
.ledger-sides b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ledger-sides .ledger-muted { color: #b5c1b6; }
.ledger-balanced { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: #c8f79a; font-size: 11px; }
.ledger-balanced > span:first-child { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #c8f79a1c; }
.login-features { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: #c4d1cc; }
.feature-separator { color: #597067; }
.login-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 88px clamp(28px, 4vw, 72px) 60px; background: #f7f7f2; }
.login-language { position: absolute; right: 28px; top: 26px; display: flex; align-items: center; gap: 9px; height: 34px; min-height: 34px; padding: 6px 10px; border: 1px solid #dce1d5; border-radius: 8px; background: transparent; color: #51615a; font-size: 10px; font-weight: 600; letter-spacing: .6px; }
.login-language img { border-radius: 2px; box-shadow: 0 0 0 1px #0001; }
.login-form-wrap { width: 100%; max-width: 360px; }
.login-welcome-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 26px; border-radius: 13px; background: #e8eddf; color: #344b3a; transform: rotate(-6deg); }
.login-welcome-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.login-kicker { margin: 0 0 10px; color: #6a7d60; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.login-form-wrap h2 { margin: 0; font-size: clamp(30px, 3vw, 40px); letter-spacing: -1.4px; line-height: 1.15; }
.login-description { margin: 14px 0 30px; font-size: 14px; color: #6d7870; line-height: 1.65; }
#loginForm label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 650; color: #34443a; }
.login-input-wrap { position: relative; margin-bottom: 22px; }
.login-input-wrap > svg { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; fill: none; stroke: #849080; stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.login-input-wrap input { width: 100%; height: 50px; padding: 12px 46px 12px 42px; border: 1px solid #d8dfd1; border-radius: 9px; background: #fff; color: #1b2d22; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.login-input-wrap input:focus { outline: none; border-color: #779b57; box-shadow: 0 0 0 3px #88aa6020; }
.login-input-wrap input:disabled { background: #f1f3ec; }
#passwordToggle { position: absolute; top: 3px; right: 4px; width: 42px; height: 44px; min-height: 44px; min-width: 42px; padding: 12px; border: 0; border-radius: 7px; background: transparent; color: #7b8973; }
#passwordToggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.password-slash { display: none; }
#passwordToggle[aria-pressed="true"] .password-slash { display: block; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 8px; padding: 12px 18px; border: 1px solid #b6e47e; border-radius: 9px; background: #c8f79a; color: #23351c; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 3px 0 #9fc879; transition: background .15s, transform .15s; }
.login-submit:hover:not(:disabled) { background: #bcec89; transform: translateY(-1px); }
.login-submit:active:not(:disabled) { transform: translateY(1px); }
.login-submit:disabled { cursor: wait; opacity: .7; }
.login-arrow { margin-left: auto; font-size: 22px; line-height: 1; }
.login-spinner { display: none; width: 15px; height: 15px; border: 2px solid #23351c33; border-top-color: #23351c; border-radius: 50%; animation: login-spin .8s linear infinite; }
#loginForm[aria-busy="true"] .login-spinner { display: block; }
.login-error { margin: -6px 0 18px; padding: 11px 12px; border: 1px solid #edcebf; border-radius: 8px; background: #fff0e9; color: #98442f; font-size: 13px; line-height: 1.5; }
.login-retry { width: 100%; margin-top: 12px; border: 0; background: transparent; color: #475e38; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.login-account-hint { margin: 26px 0 0; text-align: center; color: #818a7c; font-size: 11px; line-height: 1.6; }
.login-panel-footer { position: absolute; bottom: 25px; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 0 16px; font-size: 10px; color: #8c9387; text-align: center; }
.login-footer-dot { width: 5px; height: 5px; border-radius: 50%; background: #92ae7d; }
.login-shell button:focus-visible, .login-brand:focus-visible { outline: 3px solid #759950; outline-offset: 4px; }
.auth-notice { margin: 0 12px 8px; padding: 8px 12px; color: #98442f; background: #fff0e9; border: 1px solid #edcebf; border-radius: 6px; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) and (orientation: portrait), (max-width: 740px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { gap: 25px; padding: 30px 36px; }
  .login-hero h1 { font-size: 44px; }
  .login-intro { margin: 16px 0 0; max-width: 520px; }
  .login-ledger { display: none; }
  .login-features { margin-top: 0; }
  .login-panel { padding: 70px 36px 70px; }
  .login-language { top: 20px; right: 24px; }
  .login-welcome-icon { display: none; }
  .login-form-wrap { max-width: 420px; }
}
@media (max-width: 480px) {
  .login-visual { padding: 24px; }
  .login-hero h1 { font-size: 38px; }
  .login-brand { font-size: 18px; }
  .login-panel { padding-left: 24px; padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-shell *, .login-submit { animation: none; transition: none; }
}
