/* Navectore.
   The palette is the chart application's, so signing in and using the charts
   feel like one product rather than two. */

:root {
  --bg:#0a0e13;
  --panel:#111721;
  --panel-2:#0d131b;
  --line:#1e2733;
  --text:#e6edf5;
  --muted:#7b8a9c;
  /* Raised from #4d5b6b, which sat at 2.59:1 on the card and failed WCAG AA.
     Hints carry the password and username rules, so they have to be read. */
  --dim:#75859a;
  --accent:#ff9d10;          /* the brand orange, from the logo */
  --accent-dim:#ba6e00;      /* the logo's shaded facet */
  --danger:#ff6b7d;
  --radius:10px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;

  /* A faint glow behind the card so the page is not a flat black rectangle.
     Fixed, so it does not slide around when the form grows an error. */
  background-image:
    radial-gradient(900px 520px at 50% -12%, #2a1c06 0%, transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  padding: 24px 16px;          /* 16px side gutter, so nothing touches the
                                  edge of a phone screen */
  gap: 22px;
}

/* ------------------------------------------------------------- brand */
.brand { display: flex; justify-content: center; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .2px;
}

.brand-link img { display: block; }

/* -------------------------------------------------------------- card */
.card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px 28px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

h1 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .2px;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ------------------------------------------------------------- forms */
label {
  display: block;
  margin: 16px 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .3px;
}

input[type=text],
input[type=email],
input[type=password] {
  width: 100%;
  padding: 11px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .12s, box-shadow .12s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 157, 16, .18);
}

input[aria-invalid="true"] { border-color: var(--danger); }

.hint { margin: 6px 0 0; font-size: 11.5px; color: var(--dim); }
.err  { margin: 6px 0 0; font-size: 12px; color: var(--danger); }

button {
  width: 100%;
  margin-top: 24px;
  padding: 12px 14px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: #241500;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .12s;
}

button:hover  { filter: brightness(1.08); }
button:active { filter: brightness(.95); }

button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
button.ghost:hover { color: var(--text); border-color: var(--accent); }

/* ------------------------------------------------------------ alerts */
.alert {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-radius: 7px;
  background: rgba(255, 107, 125, .08);
  border: 1px solid rgba(255, 107, 125, .35);
  color: #ffb3bd;
  font-size: 13px;
}

/* ------------------------------------------------------------- facts */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  font-size: 13.5px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* -------------------------------------------------------------- misc */
.alt {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.foot {
  text-align: center;
  font-size: 11.5px;
  color: var(--dim);
}

@media (max-width: 430px) {
  .card { padding: 24px 20px 22px; }
}

/* Wording under a heading that explains what to do next - dimmer than the
   body copy but still comfortably above the AA threshold. */
.note {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}
.note + form { margin-top: 18px; }

/* ===================================================== homepage =====
   The card layout is for forms. The homepage needs room, so the shell
   widens and the brand row becomes a header with navigation in it. */

.layout-wide .shell { max-width: 940px; margin: 0 auto; }

.layout-wide .brand {
  justify-content: space-between;
  align-items: center;
}

.brand-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.brand-nav a:hover { color: var(--text); text-decoration: none; }

.page { width: 100%; }

/* ------------------------------------------------------------- hero */
.hero {
  text-align: center;
  padding: 36px 0 14px;
}

.hero-mark {
  display: block;
  margin: 0 auto 20px;
  /* A faint warm halo, so the star sits in the page rather than floating
     on it. drop-shadow follows the artwork's own shape, unlike box-shadow. */
  filter: drop-shadow(0 6px 26px rgba(255, 157, 16, .22));
}

.hero-title {
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -.5px;
  line-height: 1.1;
}

.hero-lede {
  margin: 0 auto 30px;
  max-width: 30rem;      /* about 60 characters, which is where a line
                            stops being comfortable to read */
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 12.5px;
}

/* Link that looks like the form button. The button rules above are scoped
   to <button>, and these are anchors. */
.btn {
  display: inline-block;
  min-width: 168px;
  padding: 12px 22px;
  border-radius: 7px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #241500;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  transition: filter .12s, border-color .12s, color .12s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn.ghost:hover { color: var(--text); border-color: var(--accent); filter: none; }

/* --------------------------------------------------------- features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.feature {
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--accent);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .hero { padding: 22px 0 8px; }
  .hero-title { font-size: 32px; }
  .hero-mark { width: 76px; height: 76px; }
  /* Full-width buttons stacked, rather than two cramped ones side by side. */
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
