/* ==========================================================================
   Nordae Bank – shared design tokens & primitives
   Used by the public site, auth pages and the customer dashboard.
   ========================================================================== */
:root {
  --n-navy: #0a1b45;
  --n-navy-2: #10285f;
  --n-blue: #1b4fd8;
  --n-blue-600: #153fb0;
  --n-sky: #e8efff;
  --n-teal: #2dd4bf;
  --n-teal-600: #14b8a6;
  --n-gold: #f5b942;
  --n-green: #0e9f6e;
  --n-red: #d92d4a;
  --n-amber: #b7791f;

  --n-bg: #f3f6fb;
  --n-surface: #ffffff;
  --n-surface-2: #f7f9fd;
  --n-ink: #1b2437;
  --n-ink-2: #46506a;
  --n-muted: #6b7690;
  --n-line: #e3e8f2;

  --n-radius: 16px;
  --n-radius-sm: 10px;
  --n-shadow: 0 1px 2px rgba(10, 27, 69, .05), 0 8px 24px rgba(10, 27, 69, .06);
  --n-shadow-lg: 0 20px 50px rgba(10, 27, 69, .14);
  --n-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--n-font); color: var(--n-ink); background: var(--n-bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--n-blue); text-decoration: none; }
a:hover { color: var(--n-blue-600); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; color: var(--n-navy); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(27, 79, 216, .35); outline-offset: 2px; border-radius: 6px; }

.n-num { font-variant-numeric: tabular-nums; }
.n-muted { color: var(--n-muted); }
.n-pos { color: var(--n-green) !important; }
.n-neg { color: var(--n-red) !important; }
.n-warn { color: var(--n-amber) !important; }
.sr-only-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Buttons ---------------------------------------------------------- */
.nb { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.25rem; border-radius: 12px; border: 1px solid transparent; font: 600 .95rem/1 var(--n-font); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; text-decoration: none; white-space: nowrap; }
.nb:hover { transform: translateY(-1px); }
.nb-primary { background: var(--n-blue); color: #fff; box-shadow: 0 6px 16px rgba(27, 79, 216, .28); }
.nb-primary:hover { background: var(--n-blue-600); color: #fff; }
.nb-dark { background: var(--n-navy); color: #fff; }
.nb-dark:hover { background: var(--n-navy-2); color: #fff; }
.nb-ghost { background: transparent; color: var(--n-navy); border-color: var(--n-line); background: #fff; }
.nb-ghost:hover { border-color: var(--n-blue); color: var(--n-blue); }
.nb-soft { background: var(--n-sky); color: var(--n-blue); }
.nb-soft:hover { background: #dbe6ff; color: var(--n-blue-600); }
.nb-light { background: #fff; color: var(--n-navy); }
.nb-light:hover { color: var(--n-blue); }
.nb-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.nb-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nb-sm { padding: .5rem .85rem; font-size: .85rem; border-radius: 10px; }
.nb-lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.nb-block { width: 100%; }
.nb[disabled], .nb.is-disabled { opacity: .55; pointer-events: none; }

/* ---- Pills / badges ---------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--n-sky); color: var(--n-blue); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-success { background: #e4f7ef; color: var(--n-green); }
.pill-danger { background: #fde8ec; color: var(--n-red); }
.pill-warn { background: #fdf3df; color: var(--n-amber); }
.pill-neutral { background: #eef1f7; color: var(--n-muted); }
.pill-plain::before { display: none; }

/* ---- Form controls (also restyles Bootstrap/crispy output) ------------ */
.n-label, .col-form-label, label.requiredField, form label { font-size: .82rem; font-weight: 600; color: var(--n-ink-2); margin-bottom: .35rem; display: inline-block; }
.n-input, .form-control, .custom-select, form select, form textarea, form input[type=text], form input[type=email], form input[type=password], form input[type=number], form input[type=tel], form input[type=date], form input[type=url] {
  width: 100%; padding: .78rem .95rem; font: 500 .95rem var(--n-font); color: var(--n-ink);
  background: #fff; border: 1.5px solid var(--n-line) !important; border-radius: 12px; height: auto; min-height: 48px;
  transition: border-color .15s, box-shadow .15s; box-shadow: none;
}
.n-input:focus, .form-control:focus, form select:focus, form textarea:focus, form input:focus { border-color: var(--n-blue) !important; box-shadow: 0 0 0 4px rgba(27, 79, 216, .12) !important; outline: none; background: #fff; }
form textarea { min-height: 96px; }
form input[type=checkbox], form input[type=radio] { width: auto; min-height: 0; accent-color: var(--n-blue); }
.form-text, .help-block, small.text-muted, .helptext, form .form-text { color: var(--n-muted) !important; font-size: .78rem; }
.invalid-feedback, .errorlist, .alert-block { color: var(--n-red); font-size: .8rem; }
.errorlist { list-style: none; padding: 0; margin: .25rem 0; }
.is-invalid { border-color: var(--n-red) !important; }
form .form-group { margin-bottom: 1.1rem; }
.asteriskField { color: var(--n-red); margin-left: 2px; }

/* ---- Alerts ------------------------------------------------------------- */
.n-alert, .alert { padding: .85rem 1.1rem; border-radius: 12px; border: 1px solid var(--n-line); background: #fff; font-size: .92rem; margin-bottom: 1rem; }
.n-alert a, .alert a { font-weight: 600; }
.alert-success, .n-alert-success { background: #e9f8f1; border-color: #bfe9d6; color: #0b6b4a; }
.alert-danger, .alert-error, .n-alert-danger { background: #fdecef; border-color: #f5c3cc; color: #9d1a33; }
.alert-warning, .n-alert-warn { background: #fdf6e6; border-color: #f2dba5; color: #86590f; }
.alert-info, .n-alert-info { background: var(--n-sky); border-color: #cbd9ff; color: #1d3f9c; }

/* ---- Brand helpers ------------------------------------------------------ */
.n-logo { display: inline-flex; align-items: center; }
.n-logo img { height: 40px; width: auto; display: block; }

/* ---- Minimal utilities (public pages ship without Bootstrap) ------------- */
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: 1rem; }
.text-center { text-align: center; }
