/* style.css — shared base: theme tokens, gradient background, top bar, footer,
   buttons, form fields. Page-specific rules live in login.css / services.css.
   Palette is the established blue/white banking theme (unchanged). */
 
:root{
  --blue-900:#0a2c5e;
  --blue-800:#0a3a78;
  --blue-700:#0b4aa2;
  --blue-600:#0f5bc4;
  --blue-500:#1565d8;
  --blue-300:#7fb0ec;
  --blue-100:#e7f0fb;
  --ink:#1b2430;
  --muted:#5b6675;
  --line:#d9e1ec;
  --white:#ffffff;
  --glass:rgba(255,255,255,0.82);
  --danger:#c0392b;
  --ok:#1e7e44;
  --radius-xl:24px;
  --radius:14px;
  --radius-sm:10px;
  --shadow-xl:0 30px 80px rgba(10,44,94,.18), 0 8px 28px rgba(10,44,94,.10);
  --shadow:0 10px 30px rgba(10,44,94,.12);
  --speed:.25s cubic-bezier(.22,1,.36,1);
}
 
*{box-sizing:border-box;}
 
html{font-size:100%;}            /* font-size control scales from here */
html,body{height:100%;}
html{transition:background-color .25s ease;}
 
body{
  margin:0;
  font-family:"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  min-height:100vh;
  background:
    radial-gradient(ellipse 60% 50% at 8% 8%,   rgba(21,101,216,.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 6%,   rgba(15,91,196,.16)  0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 88% 92%,  rgba(10,58,120,.14)  0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 14% 90%,  rgba(127,176,236,.16) 0%, transparent 50%),
    linear-gradient(150deg,#eef4ff 0%,#e6f1ff 35%,#eef3fc 65%,#f6faff 100%);
  background-attachment:fixed;
}
 
/* faint grid texture for depth (pure CSS, CSP-safe) */
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(11,74,162,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,74,162,.04) 1px, transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:radial-gradient(ellipse 80% 65% at 50% 45%, #000 30%, transparent 80%);
          mask-image:radial-gradient(ellipse 80% 65% at 50% 45%, #000 30%, transparent 80%);
  z-index:0;
}
 
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 28px;background:var(--white);border-bottom:3px solid var(--blue-700);
  position:relative;z-index:2;
}
.brand{display:flex;align-items:center;gap:10px;}
.brand-logo{height:34px;width:auto;}
.brand-name{font-weight:700;font-size:1.25rem;color:var(--blue-900);letter-spacing:.3px;}
.brand-tag{color:var(--muted);font-size:0.8125rem;}
 
.field{margin-bottom:18px;}
.field label{display:block;font-size:0.8125rem;font-weight:600;margin-bottom:6px;color:var(--ink);}
.field input{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);
  font-size:0.9375rem;outline:none;transition:var(--speed);background:#fcfdff;
}
.field input:focus{border-color:var(--blue-500);box-shadow:0 0 0 3px rgba(21,101,216,.15);}
.field input:disabled{background:#eef1f6;color:var(--muted);cursor:not-allowed;}
 
.btn{width:100%;border:0;border-radius:var(--radius-sm);padding:13px;font-size:0.9375rem;font-weight:600;cursor:pointer;}
.btn-primary{background:linear-gradient(135deg,var(--blue-700),var(--blue-500));color:#fff;transition:var(--speed);box-shadow:0 8px 20px rgba(11,74,162,.25);}
.btn-primary:hover{filter:brightness(1.05);transform:translateY(-1px);}
.btn-primary:disabled{background:#9db4d6;box-shadow:none;transform:none;cursor:not-allowed;}
.btn-link{background:transparent;color:var(--blue-700);margin-top:8px;}
.btn-link:disabled{color:var(--muted);cursor:not-allowed;}
 
.footer{text-align:center;padding:16px;color:var(--muted);font-size:0.75rem;position:relative;z-index:2;}
 
.is-hidden{display:none !important;}
 
 
/* ============================================================
   ACCESSIBILITY HELPERS
   ============================================================ */
.sr-only{
  position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;left:12px;top:-48px;z-index:50;
  background:var(--blue-700);color:#fff;padding:10px 16px;border-radius:0 0 10px 10px;
  font-size:.875rem;font-weight:600;text-decoration:none;transition:top .2s ease;
}
.skip-link:focus{top:0;}
 
/* Always-visible, high-contrast focus ring for keyboard users */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
  border-radius:6px;
}
 
/* ============================================================
   ACCESSIBILITY / THEME TOOLBAR (used on every page)
   ============================================================ */
.a11y-bar{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--bar-bg);
  border:1px solid var(--bar-border);
  border-radius:999px;padding:4px 6px;
}
.a11y-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:34px;height:34px;padding:0 9px;
  border:0;border-radius:999px;background:transparent;color:var(--bar-ink);
  font-size:.8125rem;font-weight:700;cursor:pointer;line-height:1;transition:var(--speed);
}
.a11y-btn:hover{background:var(--bar-hover);}
.a11y-btn:disabled{opacity:.4;cursor:not-allowed;}
.a11y-btn svg{width:18px;height:18px;}
.a11y-sep{width:1px;height:20px;background:var(--bar-border);}
.a11y-btn .i-sun{display:none;}
.a11y-btn .i-moon{display:inline-flex;}
[data-theme="dark"] .a11y-btn .i-sun{display:inline-flex;}
[data-theme="dark"] .a11y-btn .i-moon{display:none;}
 
/* light defaults for the toolbar tokens */
:root{
  --focus:#1565d8;
  --bar-bg:rgba(255,255,255,.85);
  --bar-border:#d9e1ec;
  --bar-ink:#0b4aa2;
  --bar-hover:#e7f0fb;
}
 
/* ============================================================
   DARK THEME
   ============================================================ */
[data-theme="dark"]{
  --blue-900:#cfe0ff;   /* headings become light on dark surfaces */
  --blue-800:#9cc1f3;
  --blue-700:#4b93ec;   /* buttons / links */
  --blue-600:#3b86e6;
  --blue-500:#5aa0f2;
  --blue-300:#3a5582;
  --blue-100:#1b2942;   /* subtle accent surface */
  --ink:#e7eef9;
  --muted:#9aa7bd;
  --line:#2a3650;
  --white:#141d30;      /* card / surface */
  --glass:rgba(20,29,48,.72);
  --focus:#6fb0ff;
  --bar-bg:rgba(20,29,48,.7);
  --bar-border:#2a3650;
  --bar-ink:#cfe0ff;
  --bar-hover:#1b2942;
}
[data-theme="dark"] body{
  color:var(--ink);
  background:
    radial-gradient(ellipse 60% 50% at 8% 8%,   rgba(75,147,236,.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 6%,   rgba(40,90,170,.18)  0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 88% 92%,  rgba(20,40,90,.22)   0%, transparent 55%),
    linear-gradient(150deg,#0a1120 0%,#0c1730 45%,#0a1226 100%);
}
[data-theme="dark"] body::before{
  background-image:
    linear-gradient(rgba(120,160,230,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,230,.05) 1px, transparent 1px);
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select{background:#0f1726;color:var(--ink);border-color:var(--line);}
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder{color:#6b7791;}
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .captcha-img{background:#0f1726;border-color:var(--line);}
[data-theme="dark"] .seg{background:#0f1726;}
[data-theme="dark"] .seg-btn.is-active{background:#1b2942;color:#fff;}
 
/* Slim top bar that carries the accessibility/theme toolbar on the login page */
/* .page-topbar{
  position:relative;z-index:3;
  display:flex;align-items:center;justify-content:flex-end;
  padding:14px 22px;
} */
