/* Copyright 2026 LNB Federal Corporation. All rights reserved. Part of Bellerophon. */
/* Principal Developer: Laxmi Narayan Behera. */
/* Sign-in page of the hosted Bellerophon Evaluation Edition: Lato only, navy #112e51, red #e31c3d and blue
   #005ea2 as the only accents, red only for errors, flat surfaces without shadows, hairline rules. */
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-display: swap; src: url("fonts/lato-latin-900-normal.woff2") format("woff2"); }

/* Design pass of November 15, 2026: solid navy title band, flat surfaces with hairline borders, rounded corners (6 px on
   fields and buttons, 10 px on the card), one primary action in blue, calm 8-pixel spacing, clear focus rings, tinted
   messages, and short eased transitions that are switched off when the system asks for reduced motion. */
:root {
  --navy: #112e51; --navy2: #0b1f38; --navy3: #1a3d66; --red: #e31c3d; --blue: #005ea2;
  --action: #005ea2; --action2: #1a4480;
  --page: #f5f6f7; --card: #ffffff; --ink: #1b1b1b; --muted: #565c65; --line: #d6d7d9; --field: #ffffff; --edge: #71767a;
  --err-bg: #fdecef; --err-line: #f4b6c1; --info-bg: #e7f2fa; --info-line: #b3d3ea;
  --ctl: 40px; --ctl-sm: 32px; --r-ctl: 6px; --r-card: 10px; --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
/* Light mode by default; dark mode only when the user selects it. The top bar keeps the navy field in both modes. */
:root[data-theme="dark"] {
  --page: #0b121c; --card: #111b28; --ink: #e8edf3; --muted: #a9b4c2; --line: #2c3a4d; --field: #0f1722;
  --blue: #73b3e7; --red: #ff6b7f; --edge: #8a96a8;
  --err-bg: #2a1219; --err-line: #6b2a38; --info-bg: #0f2438; --info-line: #2a4f73;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Lato", sans-serif; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
a.skip:focus { left: 16px; top: 8px; background: var(--card); color: var(--blue); padding: 8px 12px; z-index: 200;
  border: 1px solid var(--edge); border-radius: var(--r-ctl); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* Top bar: a compact solid navy band; wordmark at left, the product name as plain text centered, the theme icon at right. */
.top { background: var(--navy); color: #fff; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 4px 16px; padding: 8px 16px; min-height: 56px; }
.top-left { display: flex; align-items: center; justify-self: start; min-width: 0; }
.wordmark { font-weight: 900; font-size: 17px; letter-spacing: 0.08em; white-space: nowrap; }
.product { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.product b { font-size: 16px; font-weight: 900; }
.product span { color: #c8d3e1; font-weight: 400; font-size: 12px; }
.tools { display: flex; gap: 8px; align-items: center; justify-self: end; }
.top button.icon { width: var(--ctl-sm); height: var(--ctl-sm); min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; border: 1px solid transparent; cursor: pointer; border-radius: var(--r-ctl);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease); }
.top button.icon:hover { background: var(--navy3); border-color: #3d5a80; }
.top :focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }

main { flex: 1; padding: 0 16px; outline: none; }
h1 { font-size: 24px; line-height: 1.25; margin: 0; color: var(--navy); font-weight: 900; }
:root[data-theme="dark"] h1 { color: var(--ink); }
.lines p { margin: 0; }
.lead { color: var(--muted); }
/* The marking of every LNB Federal product sign-in page (CEO, November 9, 2026), one line in the card above the fields. */
.gate .restricted { margin: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); }
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
input { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--edge); border-radius: var(--r-ctl);
  padding: 0 12px; width: 100%; height: var(--ctl); transition: border-color 150ms var(--ease); }
input:hover:not(:disabled) { border-color: var(--ink); }
input:focus-visible { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 1px; }
input:disabled { opacity: 0.6; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--action); border-radius: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 0; cursor: pointer; }
/* One primary action per screen: the blue button. */
button { font: inherit; font-weight: 700; font-size: 15px; background: var(--action); color: #fff; border: 1px solid var(--action);
  min-height: var(--ctl); padding: 8px 20px; line-height: 1.2; cursor: pointer; border-radius: var(--r-ctl);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease); }
button:hover { background: var(--action2); border-color: var(--action2); }
button:active:not(:disabled) { transform: scale(0.98); }
button:disabled { opacity: 0.55; cursor: default; }
.actions { display: grid; grid-template-columns: 1fr; margin-top: 4px; }
/* A link in the action row (Try Again on a message page) reads as the same button. */
.actions a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ctl); padding: 8px 20px;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--action); border-radius: var(--r-ctl); text-decoration: none;
  transition: background-color 150ms var(--ease); }
.actions a:hover { background: var(--action2); }
/* Messages: red only for errors, tinted so they read at a glance; the session-ended note in blue. */
.error, .flash { margin: 0; padding: 10px 12px; border-radius: var(--r-ctl); font-weight: 700; font-size: 13.5px;
  animation: signin-fade 200ms var(--ease); }
.error { color: var(--red); background: var(--err-bg); border: 1px solid var(--err-line); }
.flash { border: 1px solid var(--line); }
.flash.info { color: var(--blue); background: var(--info-bg); border-color: var(--info-line); }
.error:empty { display: none; }

.gate { max-width: 480px; margin: 56px auto; padding: 32px 32px 28px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); display: grid; gap: 16px; animation: signin-rise 240ms var(--ease); }
.gate h1, .gate .lines, .gate .error, .gate .flash { text-align: center; }

footer.app { color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; padding: 16px 24px 20px; }
footer.app p { margin: 0; }

@keyframes signin-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes signin-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  .top { grid-template-columns: 1fr auto; }
  .product { grid-column: 1 / -1; grid-row: 2; }
  .gate { margin: 24px auto; padding: 24px 20px 20px; }
}
