/* Brand colors and font come from the database through brand-head.php. */
body, body *, body *::before, body *::after { font-family: var(--brand-font) !important; }
#loginBtn { background: var(--brand-primary); }
#loginBtn:hover { background: var(--brand-secondary); }
.brand-login-banner { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); }
.brand-lockup { align-items: center; color: inherit; display: inline-flex; font-size: 20px; font-weight: 700; gap: 12px; text-decoration: none; }
.brand-lockup img, .brand-mark { align-items: center; border-radius: 12px; display: inline-flex; height: 44px; justify-content: center; object-fit: contain; width: 44px; }
.brand-mark { background: var(--brand-primary); color: white; font-size: 22px; }
.brand-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.brand-login .hidden { display: none !important; }
.brand-login { background: #f6f7f9; color: #142134; margin: 0; }
.brand-login * { box-sizing: border-box; }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding: 18px; gap: 18px; }
.login-story { background: var(--brand-secondary); border-radius: 24px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; position: relative; overflow: hidden; }
.login-story::after { border: 1px solid #ffffff18; border-radius: 50%; content: ''; height: 450px; pointer-events: none; position: absolute; right: -240px; top: 120px; width: 450px; }
.login-story-copy { max-width: 440px; padding: 65px 0; position: relative; z-index: 1; }
.login-story .brand-eyebrow { color: #ffffffa8; }
.login-story h1 { font-size: clamp(36px, 4.2vw, 64px); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; margin: 20px 0; }
.login-story-copy > p { color: #ffffffb8; font-size: 15px; line-height: 1.8; margin-bottom: 34px; }
.login-feature { display: flex; gap: 16px; margin-top: 26px; }
.login-feature > span { color: #ffffff90; font-size: 12px; padding-top: 3px; }
.login-feature strong { font-size: 14px; font-weight: 600; }
.login-feature p { color: #ffffffa8; font-size: 12px; line-height: 1.6; margin: 6px 0 0; }
.login-story small { color: #ffffff90; font-size: 11px; }
.login-form-panel { align-items: center; display: flex; justify-content: center; padding: 50px 30px 80px; position: relative; }
.login-form-wrap { max-width: 380px; width: 100%; }
.login-form-wrap .brand-eyebrow { color: var(--brand-primary); }
.login-form-wrap h2 { font-size: 36px; font-weight: 600; letter-spacing: -.045em; margin: 17px 0 10px; }
.login-intro, .login-help { color: #697487; font-size: 13px; line-height: 1.7; }
.login-intro { margin-bottom: 32px; }
.login-form-wrap label { display: block; font-size: 12px; font-weight: 600; margin: 20px 0 9px; }
.login-form-wrap input { background: white; border: 1px solid #dce2e8; border-radius: 10px; color: #142134; font-size: 14px; height: 49px; outline: none; padding: 0 14px; width: 100%; }
.login-form-wrap input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-soft); }
.login-password { position: relative; }
.login-password input { padding-right: 48px; }
.login-password button { align-items: center; background: none; border: 0; color: #697487; cursor: pointer; display: flex; height: 49px; position: absolute; right: 10px; top: 0; }
.login-password svg { height: 18px; width: 18px; }
.login-submit { align-items: center; background: var(--brand-primary); border: 0; border-radius: 10px; color: white; cursor: pointer; display: flex; font-size: 13px; font-weight: 600; gap: 8px; justify-content: center; margin-top: 26px; min-height: 49px; padding: 12px; width: 100%; }
.login-submit:hover { background: var(--brand-secondary); }
.login-submit:disabled { cursor: wait; opacity: .65; }
.login-help { font-size: 11px; margin-top: 24px; text-align: center; }
.login-footnote { bottom: 22px; color: #8b93a1; font-size: 11px; position: absolute; text-align: center; }
.login-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #b91c1c; font-size: 12px; padding: 12px; }
.brand-custom:not(.brand-login) { background: #f3f5f7; }
.brand-custom #sidebar + div > header { background: transparent; border: 0; padding-top: 22px; padding-bottom: 18px; }
.brand-custom .panel, .brand-custom .stat-card { border-radius: 16px; box-shadow: 0 3px 18px #14213404; }
.brand-custom .btn-primary { background: var(--brand-primary); border-radius: 9px; box-shadow: none; }
.brand-custom .btn-primary:hover { background: var(--brand-secondary); }
.brand-custom .nav-subitem.active, .brand-custom .theme-btn { color: var(--brand-primary); }
.brand-custom .theme-btn { background: var(--brand-soft); border-color: transparent; }
.brand-custom #netDepositsCard { background: var(--brand-primary); box-shadow: none; }
.brand-custom #netSettlementsCard { background: var(--brand-secondary); box-shadow: none; }
.brand-custom #netDepositsCard p, .brand-custom #netSettlementsCard p { color: #ffffffc7; }
.brand-custom .text-blue-600, .brand-custom .text-blue-700 { color: var(--brand-primary); }
.brand-custom .stat-icon.bg-blue-50 { background: var(--brand-soft); }
.brand-custom .dark .nav-item.active { background: var(--brand-soft); }
.brand-welcome { align-items: center; background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 22px; padding: 22px 26px; }
.brand-welcome h2 { font-size: 22px; font-weight: 600; letter-spacing: -.04em; margin: 5px 0; }
.brand-welcome p { color: #697487; font-size: 12px; }
.brand-welcome .brand-eyebrow { color: var(--brand-primary); }
.dark .brand-custom:not(.brand-login) { background: #101722; }
.dark .brand-welcome { background: #182230; border-color: #293547; }
.dark .brand-welcome p { color: #a2adbb; }
@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .login-story { border-radius: 0 0 24px 24px; padding: 26px; }
  .login-story-copy { padding: 28px 0 0; }
  .login-story h1 { font-size: 34px; }
  .login-feature, .login-story-copy > p, .login-story small { display: none; }
  .login-form-panel { padding: 40px 24px 75px; }
  .login-form-wrap h2 { font-size: 30px; }
  .brand-welcome { align-items: flex-start; padding: 18px; }
}
