/* Eagles Eye portal — the VisionCoders palette (deep slate + lime) applied to
   this project. One stylesheet, no framework, no web fonts: the pages must
   load fast on a control-room connection and work offline in a demo. */
:root {
  --bg: #070b12;
  --surface: rgba(17, 25, 30, .82);
  --surface-2: #101a1f;
  --line: rgba(217, 169, 63, .18);
  --ink: #e9eef1;
  --muted: #8fa0a8;
  --brand: #d9a93f;
  --brand-2: #f0cd7a;
  --brand-ink: #0b1115;
  --danger: #ff7b6b;
  --ok: #7ee2a8;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* The same drawn backdrop as the landing page: a faint camera grid over the
     dark ground, no photograph to download. 100dvh rather than 100vh so a
     mobile browser's collapsing toolbar does not make the page scrollable by
     the height of its own chrome. */
  background:
    radial-gradient(1000px 560px at 50% -8%, rgba(96,150,196,.13) 0%, transparent 66%),
    repeating-linear-gradient(0deg, rgba(217,169,63,.04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(217,169,63,.04) 0 1px, transparent 1px 72px),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ---------------------------------------------------------------- header */
.nav {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 20px 20px;
  flex-wrap: wrap;
}
/* The public site carries the logo, never a text wordmark. The artwork is
   gold on black, so it sits on its own dark plate to keep the edges clean. */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; display: block; }
@media (max-width: 560px) { .brand img { height: 32px; } }
.brand-tag {
  font-family: ui-monospace, Consolas, monospace; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.hero-logo { display: block; height: 104px; width: auto; margin: 0 0 18px; }
@media (max-width: 560px) { .hero-logo { height: 92px; } }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--ink); text-decoration: none; }
.nav .actions { display: flex; gap: 10px; }

.back-home {
  color: var(--muted); font-size: .9rem; letter-spacing: .02em;
  transition: color .18s ease;
}
.back-home:hover { color: var(--brand); text-decoration: none; }

/* ----------------------------------------------------------------- bits */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
  color: var(--brand-ink); font-weight: 600;
  box-shadow: 0 10px 26px rgba(217, 169, 63, .18);
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; font-size: .95rem; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 14px 32px rgba(217,169,63,.26); }
.btn:active { transform: none; }
.btn, .btn:hover { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line);
  box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn.big { padding: 14px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  color: var(--brand); margin: 0 0 12px;
}
.note { color: var(--muted); font-size: .9rem; }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px 64px; }
.hero { padding: 48px 0 32px; max-width: 820px; }
.lead { color: var(--muted); font-size: 1.1rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 40px 0; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid h3 { font-size: 1.05rem; color: var(--brand); }
.grid p { color: var(--muted); margin: 0; font-size: .95rem; }

.steps { margin: 48px 0; }
.steps ol { color: var(--muted); padding-left: 20px; }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--ink); }

.team .member { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 640px; }
.team .avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand), #6fd4a1); color: var(--brand-ink); font-weight: 700; font-size: 1.2rem; flex: none; }
.team .role { color: var(--brand); margin: 0 0 8px; font-size: .9rem; }
.team p { color: var(--muted); margin: 0; }

.strip { margin: 48px 0 0; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--surface-2); }
.strip p { color: var(--muted); margin: 0; }

footer { border-top: 1px solid var(--line); padding: 24px 20px 40px; color: var(--muted); text-align: center; font-size: .9rem; }
footer p { margin: 4px 0; }

/* ----------------------------------------------------------------- forms

   Two panels: what you are signing in to on the left, the form on the right.
   A form alone on an empty page gives no sense of what is behind it, and on a
   product people are about to trust with camera footage that matters.
*/
.auth-wrap {
  display: grid; align-items: center; gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  max-width: 1020px; margin: 0 auto; padding: 40px 20px 72px;
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
}

.auth-aside { max-width: 460px; }
.auth-logo {
  display: block; height: 200px; width: auto; margin: 0 0 30px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(217, 169, 63, .22);
  border-radius: 22px; padding: 12px 24px;
}
.auth-aside h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; margin: 0 0 12px;
}
.auth-blurb { color: var(--muted); margin: 0 0 24px; }
.auth-points { list-style: none; margin: 0; padding: 0; }
.auth-points li {
  position: relative; padding: 0 0 0 26px; margin-bottom: 12px;
  color: var(--muted); font-size: .94rem;
}
.auth-points li:before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(217, 169, 63, .14);
}
@media (max-width: 900px) {
  .auth-aside { max-width: none; text-align: center; }
  .auth-logo { height: 132px; margin: 0 auto 20px; }
  .auth-points { display: none; }
}

/* Sign-up: the form was one tall column and the page scrolled. Two columns
   under a banner instead, so the whole thing is on screen at once. */
.auth-wrap--wide {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1060px;
  gap: 26px;
}
.auth-aside--banner {
  max-width: none; display: flex; align-items: center; gap: 28px;
}
.auth-aside--banner .auth-logo { height: 150px; margin: 0; flex: none; }
.auth-aside--banner .auth-aside-copy { min-width: 0; }
.auth-aside--banner h2 { margin: 0 0 8px; }
.auth-aside--banner .auth-blurb { margin: 0; }
@media (max-width: 760px) {
  .auth-aside--banner { display: block; text-align: center; }
  .auth-aside--banner .auth-logo { height: 118px; margin: 0 auto 18px; }
}

.signup-cards {
  display: grid; gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px) { .signup-cards { grid-template-columns: 1fr; gap: 8px; } }
.signup-col h1 { font-size: 1.2rem; margin-bottom: .25em; }
.signup-col > p.sub { font-size: .88rem; margin-bottom: 4px; }
.signup-col > label:first-of-type { margin-top: 10px; }
.signup-col .captcha { margin-top: 18px; }

/* A field the server or the form refused, marked where the eye is already. */
.field-bad {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(255, 123, 107, .16) !important;
}

.card {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 34px 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
}
.card.wide { max-width: none; }
.card h1 { font-size: 1.55rem; margin-bottom: .35em; }
.card > p.sub { color: var(--muted); margin-top: 0; font-size: .95rem; }

label {
  display: block; font-size: .78rem; color: var(--muted); margin: 18px 0 7px;
  letter-spacing: .09em; text-transform: uppercase;
}
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(8, 13, 15, .75); color: var(--ink);
  font: inherit; transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder, textarea::placeholder { color: #5d6b72; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217, 169, 63, .18);
}
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; color: var(--muted); font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }

.msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .92rem; display: none; }
.msg.err { display: block; background: rgba(255,123,107,.12); border: 1px solid var(--danger); color: #ffd9d3; }
.msg.ok { display: block; background: rgba(126,226,168,.12); border: 1px solid var(--ok); color: #d7f7e6; }
.msg.wait { display: block; background: rgba(217,169,63,.12); border: 1px solid var(--brand); color: #f4e3bd; }
.foot { margin-top: 20px; color: var(--muted); font-size: .9rem; text-align: center; }
.step { display: none; }
.step.active { display: block; }

/* The check sits in its own tray so it does not read as another form field. */
.captcha {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end;
  margin-top: 20px; padding: 16px; border-radius: 14px;
  background: rgba(8, 13, 15, .55); border: 1px solid var(--line);
}
.captcha label { margin-top: 0; }
.captcha .q { font-size: .98rem; color: var(--ink); }
.captcha .btn { align-self: end; }

.otp-input {
  letter-spacing: .55em; font-size: 1.5rem; text-align: center;
  padding: 16px 15px; font-variant-numeric: tabular-nums;
}
.terms-box {
  max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; background: rgba(8, 13, 15, .6); color: var(--muted); font-size: .88rem;
}
.terms-box h4 { color: var(--ink); margin: 12px 0 4px; font-size: .95rem; }
.legal { color: var(--muted); }
.legal h2 { color: var(--ink); margin-top: 28px; }
.legal li { margin-bottom: 8px; }


/* Sign-up has to fit on one screen - the whole point of two columns was that
   nobody should scroll to find the button. Everything here is a few pixels
   off the vertical rhythm, applied only on that page. */
.auth-wrap--wide { padding-top: 22px; padding-bottom: 28px; gap: 18px; }
.auth-wrap--wide .auth-aside--banner { gap: 22px; }
.auth-wrap--wide .auth-aside--banner .auth-logo { height: 116px; padding: 8px 18px; }
.auth-wrap--wide .auth-aside--banner h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.auth-wrap--wide .auth-aside--banner .auth-blurb { font-size: .92rem; }
.auth-wrap--wide .card { padding: 24px 26px 22px; }
.auth-wrap--wide label { margin: 12px 0 5px; }
.auth-wrap--wide input, .auth-wrap--wide select { padding: 10px 14px; }
.auth-wrap--wide .signup-col h1 { font-size: 1.08rem; margin-bottom: .1em; }
.auth-wrap--wide .signup-col > p.sub { font-size: .84rem; margin-bottom: 0; }
.auth-wrap--wide .signup-col .note { font-size: .8rem; line-height: 1.45; }
.auth-wrap--wide .captcha { margin-top: 14px; padding: 12px; }
.auth-wrap--wide .check { margin: 14px 0 12px; font-size: .84rem; line-height: 1.55; }
.auth-wrap--wide .btn.big { padding: 12px 26px; }
.auth-wrap--wide .foot { margin-top: 12px; }
@media (max-width: 860px) {
  .auth-wrap--wide .card { padding: 22px 20px; }
}

/* Still 72px over on a 900px viewport; the last of it comes off the chrome
   rather than the fields, which are as tight as they should get. */
body:has(.auth-wrap--wide) .nav { padding-top: 12px; padding-bottom: 8px; }
.auth-wrap--wide { gap: 14px; padding-bottom: 16px; }
.auth-wrap--wide .auth-aside--banner .auth-logo { height: 100px; }
.auth-wrap--wide .card { padding: 20px 24px 18px; }
.auth-wrap--wide label { margin: 10px 0 5px; }
.auth-wrap--wide .check { margin: 12px 0 10px; }
.auth-wrap--wide .foot { margin-top: 10px; font-size: .85rem; }
/* The last 16px, so it fits a 900px viewport with a little to spare. */
.auth-wrap--wide { padding-bottom: 6px; }
.auth-wrap--wide .foot { margin-top: 8px; }
.auth-wrap--wide .signup-col .note { margin-top: 3px !important; }

/* Scrollbars off across the portal, matching the landing page. */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
