/* Client gate login — mirrors the Benchmark Solutions marketing site.
   All colors reference brand tokens (benchmark-tokens.json / site globals.css)
   via the CSS variables below. Do not introduce values outside the tokens. */

:root {
  --navy: #1f3a5f;            /* color.secondary.navy */
  --navy-foreground: #ffffff;
  --brand-blue: #0087c2;      /* color.primary.blue */
  --brand-green: #66a43a;     /* color.primary.green */
  --brand-yellow: #f7d74d;    /* color.primary.yellow */
  --brand-orange: #e17e26;    /* color.primary.orange */
  --orange-hover: #c9701f;    /* site hover state for brand-orange */
  --link: #006a99;            /* color.functional.link */
  --background: #ffffff;
  --foreground: #2f2f2f;      /* color.secondary.charcoal */
  --muted-foreground: #5b6b7e; /* site slate-brand */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

/* Header — the site's sticky navy bar with the single gradient rule beneath */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--navy-foreground);
}

.site-header-inner {
  margin: 0 auto;
  max-width: 80rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
}

.logo { height: 2.25rem; width: auto; display: block; }
.logo-link { display: inline-flex; align-items: center; }

.header-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.color-bar {
  height: 4px;
  width: 100%;
  background-image: linear-gradient(90deg,
    var(--brand-blue) 0%, var(--brand-green) 42%,
    var(--brand-yellow) 68%, var(--brand-orange) 100%);
}

/* Login section — mirrors app/login/page.tsx on the site */
main { flex: 1; display: flex; }

.login-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem;
}

.login-wrap { width: 100%; max-width: 28rem; }

.login-intro { text-align: center; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

h1 {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.sub {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Card — navy, same radius/shadow/fields as the site's LoginCard */
.login-card {
  margin-top: 2rem;
  border-radius: 0.375rem;
  background: var(--navy);
  color: var(--navy-foreground);
  padding: 2rem;
  box-shadow: 0 24px 60px -24px rgba(11, 42, 74, 0.45);
}

.login-card label { display: block; }

.login-card label span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.field-gap { margin-top: 1.25rem; }

.login-card input {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.625rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  color: #ffffff;
}

.login-card input::placeholder { color: rgba(255, 255, 255, 0.3); }

.login-card input:focus {
  border-color: var(--brand-blue);
  outline: none;
}

.login-card input:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 1px;
}

.login-card button {
  margin-top: 1.5rem;
  width: 100%;
  border: 0;
  border-radius: 0.375rem;
  background: var(--brand-orange);
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.login-card button:hover { background: var(--orange-hover); }

.login-card button:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

/* Notices — same treatment as the site's status box */
.notice {
  margin-bottom: 1.25rem;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.notice[hidden] { display: none; }

.notice-error {
  border: 1px solid rgba(225, 126, 38, 0.5);
  background: rgba(225, 126, 38, 0.12);
}

.notice-info {
  border: 1px solid rgba(0, 135, 194, 0.4);
  background: rgba(0, 135, 194, 0.1);
}

.fine-print {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.fine-print a {
  color: var(--link);
  text-decoration: none;
}

.fine-print a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (max-width: 480px) {
  .login-card { padding: 1.5rem; }
  .login-section { padding: 3rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .login-card button { transition: none; }
}
