/* Waterfall Bank — Employee vCard & QR Generator
   Palette sampled from the supplied bank mark (RGB 8,97,206) plus a
   deep navy for text and a cool off-white background. The vertical
   "waterfall" stripes from the logo are reused as a recurring motif
   (card left-borders, section dividers) so the tool visually belongs
   to the brand rather than looking like a generic admin form. */

:root {
  --brand-blue: #0861CE;
  --brand-blue-dark: #054A9E;
  --brand-navy: #0A2540;
  --bg: #F5F8FC;
  --panel: #FFFFFF;
  --line: #DCE6F2;
  --muted: #5B6B7F;
  --success-bg: #EAF7EE;
  --success-text: #1F7A3F;
  --error-bg: #FDEDED;
  --error-text: #B3261E;
  --radius: 10px;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--brand-navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.stripes-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,97,206,0.03), rgba(8,97,206,0) 40%);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.topbar img.mark {
  height: 40px;
  width: 40px;
}

.topbar .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.topbar .brand-text .name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.topbar .brand-text .tag {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

nav.tabs {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

nav.tabs a {
  text-decoration: none;
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

nav.tabs a:hover { background: var(--success-bg); background: #EAF1FC; }
nav.tabs a.active { background: var(--brand-blue); color: #fff; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  position: relative;
  padding: 30px 32px;
  margin-bottom: 28px;
  background: var(--brand-navy);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--brand-blue), #04204a 70%);
  opacity: 0.9;
}

.hero .stripe-set {
  position: absolute;
  right: 18px;
  top: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  align-items: stretch;
  opacity: 0.55;
}

.hero .stripe-set span {
  width: 5px;
  background: rgba(255,255,255,0.85);
  border-radius: 3px;
  align-self: center;
}
.hero .stripe-set span:nth-child(1) { height: 100%; }
.hero .stripe-set span:nth-child(2) { height: 78%; }
.hero .stripe-set span:nth-child(3) { height: 60%; }
.hero .stripe-set span:nth-child(4) { height: 44%; }

.hero h1 {
  position: relative;
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 60%;
}

.hero p {
  position: relative;
  margin: 0;
  color: #C9D8EC;
  font-size: 14.5px;
  max-width: 55%;
  line-height: 1.5;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 22px;
}

.panel h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-blue-dark);
  margin: 0 0 4px;
}

.panel .sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-navy);
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFDFF;
  color: var(--brand-navy);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(8,97,206,0.14);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

button.btn:hover, a.btn:hover { background: var(--brand-blue-dark); }
button.btn:active { transform: translateY(1px); }

a.btn.secondary, button.btn.secondary {
  background: transparent;
  color: var(--brand-blue-dark);
  border: 1px solid var(--line);
}
a.btn.secondary:hover, button.btn.secondary:hover { background: #EAF1FC; }

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 18px;
  font-weight: 600;
}
.flash.error { background: var(--error-bg); color: var(--error-text); }
.flash.success { background: var(--success-bg); color: var(--success-text); }

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: #FBFDFF;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.drag { border-color: var(--brand-blue); background: #EAF1FC; }
.dropzone strong { color: var(--brand-navy); }

.helper-list {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0 0;
  padding-left: 18px;
}
.helper-list code {
  font-family: var(--mono);
  background: #EEF3FA;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--brand-blue-dark);
}

.spec-note {
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.spec-note strong { color: var(--brand-navy); }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1, .hero p { max-width: 100%; }
  .hero .stripe-set { display: none; }
}


/* ---- Authentication ---------------------------------------------------- */
.login-card { max-width: 420px; margin: 48px auto; }
.login-card .field { margin-bottom: 14px; }
form.logout { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
form.logout .who { font-size: 13px; color: var(--muted); }
form.logout button {
  font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
form.logout button:hover { background: #EAF1FC; }

.login-failed {
  border: 1px solid var(--error-text); border-left-width: 4px;
  background: var(--error-bg); color: var(--error-text);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 18px;
}
.login-failed .lf-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.login-failed p { margin: 0; font-size: 14px; }
.login-failed .lf-meta { margin-top: 6px; font-size: 13px; opacity: .85; }

/* Keep action buttons on one line; wrap the row instead on narrow screens */
.actions { flex-wrap: wrap; }
.actions .btn { white-space: nowrap; }
