/* Log in page — Stallion Caravans theme (Limestone, Bark, Espresso, Olive; Inter / Work Sans / DM Mono) */
:root {
  --limestone: #f1ebe1;
  --bark: #512b1a;
  --espresso: #201e16;
  --olive: #6c724b;
  --olive-dark: #565b3a;
  --bg: #f4efe6;
  --card: #fffdfa;
  --ink: #201e16;
  --muted: #6b6355;
  --line: #e2d9cb;
  --line-strong: #d6ccbc;
  --bad: #b42318;
  --bad-soft: #fbe7e3;
  --ok-soft: #eaeedd;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); min-height: 100%; }
button, input { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.lg-top { background: var(--espresso); color: var(--limestone); border-bottom: 3px solid var(--bark); display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: max(26px, env(safe-area-inset-top)) 16px 22px; }
.lg-top .mark { width: 52px; height: auto; display: block; }
.lg-top .word { width: 200px; max-width: 70vw; height: auto; display: block; }
.lg-top .sub { font-family: "DM Mono", Consolas, monospace; font-size: 11px; font-weight: 500; color: #a8a08f; letter-spacing: .22em; text-transform: uppercase; }

.lg-main { max-width: 420px; margin: 0 auto; padding: 22px 16px calc(40px + env(safe-area-inset-bottom)); }
.lg-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 3px rgba(32, 30, 22, .07); padding: 22px 20px; }
.lg-card h1 { font-family: "Work Sans", Inter, sans-serif; font-weight: 500; font-size: 21px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; color: var(--espresso); }
.lg-card p { margin: 0 0 14px; line-height: 1.45; }
.lg-field { display: block; margin: 0 0 14px; font-weight: 600; font-size: 14px; color: #3d382c; }
.lg-field input { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  font-size: 17px; font-weight: 400; }
.lg-field input:focus { outline: 2px solid rgba(108, 114, 75, .35); outline-offset: 0; border-color: var(--olive); }
.lg-pw { position: relative; display: block; }
.lg-pw input { padding-right: 76px; }
.lg-show { position: absolute; right: 4px; bottom: 4px; height: 40px; min-width: 64px; border: none; background: transparent; color: var(--bark); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 4px; }
.lg-pw + .lg-hint { display: block; }
.lg-hint { font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.lg-btn { display: block; width: 100%; min-height: 52px; margin-top: 6px; border: none; border-radius: 6px; background: var(--olive); color: var(--limestone); cursor: pointer;
  font-family: "Work Sans", Inter, sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.lg-btn:hover { background: var(--olive-dark); }
.lg-btn:disabled { opacity: .6; cursor: default; }
.lg-link { display: inline-block; margin-top: 14px; background: none; border: none; padding: 6px 0; color: var(--bark); font-weight: 600; cursor: pointer; }
.lg-err { background: var(--bad-soft); color: var(--bad); border: 1px solid #ecc2ba; border-radius: 6px; padding: 10px 12px; margin: 0 0 14px; font-weight: 600; }
.lg-ok { background: var(--ok-soft); color: #4d6b2f; border: 1px solid #cfd8b5; border-radius: 6px; padding: 10px 12px; margin: 0 0 14px; font-weight: 600; }
.lg-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.lg-warn { background: #fbf0dc; color: #7a4a00; border: 1px solid #eed6a6; border-radius: 6px; padding: 10px 12px; margin: 0 0 14px; font-weight: 600; line-height: 1.4; }
