/* abacus.css : page chrome only (body, top bar, login). Components come from gs-systems.css. */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; color: #1f2937; background: #f6f7f9; }

.abacus-bar { display: flex; align-items: center; gap: 1rem; padding: 0 1rem; height: 48px; background: #111827; color: #e5e7eb; }
.abacus-bar a { color: #e5e7eb; text-decoration: none; font-size: 0.875rem; }
.abacus-bar a:hover { color: #fbbf24; }
.abacus-brand { font-weight: 700; letter-spacing: 0.04em; color: #fbbf24 !important; }
.abacus-bar-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.abacus-who { color: #9ca3af; font-size: 0.8125rem; }

.abacus-flash { max-width: 1280px; margin: 0.75rem auto 0; padding: 0 1rem; }
#content { padding-bottom: 3rem; }
#content:has(.abacus-login-stage) { padding-bottom: 0; }
.abacus-foot { text-align: center; color: #9ca3af; font-size: 0.75rem; padding: 1rem; }

.abacus-login-stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: #0b1521 url('../images/default/background.jpg') center / cover no-repeat; }
.abacus-login-stage + .abacus-foot { display: none; }
.abacus-login { width: 100%; max-width: 26rem; }
.abacus-login-card { padding: 2.25rem 2rem 1.75rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.88); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55); outline: 1px solid rgba(0, 0, 0, 0.05); }
.abacus-login-head { text-align: center; }
.abacus-login-mark { display: block; width: 3rem; height: 2.55rem; margin: 0 auto; color: #b45309; }
.abacus-login-title { margin: 0.75rem 0 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: #0b1521; }
.abacus-login-sub { margin: 0.25rem 0 0; font-size: 0.875rem; color: #475569; }
.abacus-login-alert { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.75rem 1rem; border: 1px solid #fecaca; border-radius: 0.75rem; background: #fef2f2; color: #b91c1c; font-size: 0.875rem; font-weight: 500; }
.abacus-login-alert svg { flex-shrink: 0; }
.abacus-login-form { margin-top: 1.5rem; }
.abacus-login-row { margin-bottom: 1rem; }
.abacus-login-row label { display: block; margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; }
.abacus-login-field { position: relative; }
.abacus-login-field > svg { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.abacus-login-field input { width: 100%; min-height: 3rem; padding: 0 2.75rem; border: 1px solid #cbd5e1; border-radius: 0.75rem; background: #fff; color: #0f172a; font: inherit; font-size: 1rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.abacus-login-field input:focus { border-color: #0b1521; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.45); }
.abacus-login-eye { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 0.875rem; border: 0; border-radius: 0.75rem; background: transparent; color: #64748b; cursor: pointer; }
.abacus-login-eye:hover, .abacus-login-eye[aria-pressed="true"] { color: #0b1521; }
.abacus-login-eye:focus-visible, .abacus-login-btn:focus-visible { outline: 2px solid #0b1521; outline-offset: 2px; }
.abacus-login-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; margin-top: 1.5rem; padding: 0 1rem; border: 0; border-radius: 0.75rem; background: #fbbf24; color: #1a1300; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 10px 20px -8px rgba(180, 83, 9, 0.6); transition: background 0.15s; }
.abacus-login-btn:hover { background: #f5b301; }
.abacus-login-btn svg { transition: transform 0.15s; }
.abacus-login-btn:hover svg { transform: translateX(2px); }
.abacus-login-note { margin: 1.25rem 0 0; text-align: center; font-size: 0.8125rem; color: #475569; }
.abacus-login-foot { margin: 1.25rem 0 0; text-align: center; font-size: 0.75rem; color: #64748b; }
@media (prefers-reduced-motion: reduce) { .abacus-login-field input, .abacus-login-btn, .abacus-login-btn svg { transition: none; } }

.abacus-grid-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin: 0.75rem 0; }
.abacus-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.75rem; }
.abacus-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.abacus-pre { background: #111827; color: #e5e7eb; padding: 1rem; border-radius: 0.25rem; overflow: auto; font-size: 0.8125rem; }
