/* Finease "Coastal" theme for the login page (same look as the home page, landing/index.html).
   Added to the cleaned front end by make_frontend.py, loaded after the page's own stylesheet.
   The page draws everything from these tokens; [data-theme][data-theme] beats every built-in
   theme (light/dark/grey/oled), so the browser's or the server's theme choice can't undo it. */

:root:root, [data-theme][data-theme] {
  --background: #F7F4EC;            /* ivory, never pure white */
  --foreground: #1A2942;            /* navy */
  --card: #F7F4EC;
  --card-foreground: #1A2942;
  --popover: #F7F4EC;
  --popover-foreground: #1A2942;
  --primary: #1A2942;               /* navy buttons */
  --primary-foreground: #F7F4EC;
  --secondary: #44719A;             /* pale-blue ink */
  --secondary-foreground: #F7F4EC;
  --muted: #E7DBC4;                 /* sand */
  --muted-foreground: #5B6474;      /* slate */
  --accent: #E7DBC4;
  --accent-foreground: #1A2942;
  --border: #CDBD9E;                /* sand line */
  --input: #CDBD9E;
  --ring: #B9965A;                  /* brass: the one metal */
  --info: #6E98BC;
  --info-foreground: #F7F4EC;
  --radius: .25rem;
  --custom-icon: #1A2942;
  --custom-loading-bar: #B9965A;
  --divider: #CDBD9E;
  --font-sans: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

html, body { background: #F7F4EC; color: #1A2942; }
body { font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif; padding: 72px 0 64px; }

/* the form */
#root img[alt="Logo"] { width: 76px; margin-bottom: 14px; }
#root h5 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700; font-size: 2.1rem; letter-spacing: 0; color: #1A2942;
}
#root h6 { color: #5B6474; }
#root input { background: #FFFDF8; color: #1A2942; }
#root input:focus, #root input:focus-visible { border-color: #B9965A; }
#root button[type="submit"], #root form button.w-full {
  font-weight: 600; letter-spacing: .04em; text-transform: none;
}
#root button[type="submit"]:hover { background: #13203A; }
#root a { color: #44719A; }
#root a:hover { color: #8A6B2E; }
#root label { color: #5B6474; }

/* page chrome (header + footer outside the app, written by make_frontend.py) */
.fa-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 5vw, 72px); background: rgba(247, 244, 236, .96);
  border-bottom: 1px solid #CDBD9E;
}
.fa-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1A2942; }
.fa-brand img { width: 34px; height: auto; }
.fa-brand span { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-weight: 600; letter-spacing: .22em; font-size: 13px; }
.fa-home { font-size: 14px; font-weight: 500; color: #5B6474; text-decoration: none;
  border: 1px solid #CDBD9E; border-radius: 4px; padding: 7px 16px; }
.fa-home:hover { border-color: #B9965A; color: #8A6B2E; }
.fa-foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 16px clamp(16px, 5vw, 72px); display: flex; justify-content: space-between; gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
  letter-spacing: .1em; color: #8A93A5; background: #F7F4EC;
  border-top: 1px solid #CDBD9E; box-shadow: inset 0 3px 0 #F7F4EC, inset 0 4px 0 #CDBD9E;
}
@media (max-height: 560px) { .fa-foot { position: static; } }
