:root {
  color-scheme: light dark;
  --primary: #1f3a5f;
  --primary-hover: #2b4a75;
  --accent: #f2a900;
  --canvas: #f5efe6;
  --surface: #fffcf7;
  --text: #1f2328;
  --muted: #625a52;
  --border: #c8bba9;
  --field: #ffffff;
  --error: #b42318;
  --focus: #1f3a5f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-brand-domain="assault.digital"] {
  --primary: #164c2f;
  --primary-hover: #1e6540;
  --accent: #ffffff;
  --canvas: #e8f2e9;
  --surface: #f7fbf7;
  --text: #17251c;
  --muted: #4d5f52;
  --border: #9fbea3;
  --focus: #164c2f;
}

* { box-sizing: border-box; }

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
}

.entrance {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
}

.entrance__panel {
  width: min(100%, 34rem);
  padding: clamp(1.5rem, 6vw, 3.5rem);
  border: 1px solid var(--border);
  border-left: 0.4rem solid var(--primary);
  background: var(--surface);
  box-shadow: 0 1.25rem 3.5rem rgb(31 35 40 / 10%);
}

.wordmark {
  margin: 0 0 clamp(3rem, 10vw, 5.5rem);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.entrance__copy { margin-bottom: 2rem; }

h1 {
  max-width: 12ch;
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.entrance__copy p,
.help,
.privacy-note {
  color: var(--muted);
  line-height: 1.55;
}

.entrance__copy p { margin: 0; }

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 650;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.625rem;
}

input,
button {
  min-height: 3rem;
  border-radius: 0.5rem;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--field);
  color: #1f2328;
  padding: 0.75rem 0.875rem;
}

input:hover { border-color: var(--muted); }

button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 1.125rem;
}

button:hover { background: var(--primary-hover); }

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

input[aria-invalid="true"] { border-color: var(--error); }

.help,
.error,
.privacy-note {
  font-size: 0.8125rem;
}

.help { margin: 0.75rem 0 0; }
.help strong { color: var(--text); font-weight: 650; }

.error {
  margin: 0.625rem 0 0;
  color: var(--error);
  font-weight: 650;
}

.privacy-note {
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

[hidden] { display: none !important; }

@media (max-width: 27rem) {
  .field-row { grid-template-columns: 1fr; }
  button { width: 100%; }
  .wordmark { margin-bottom: 3rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171b21;
    --surface: #20262e;
    --text: #f2f5f8;
    --muted: #bdc7d2;
    --border: #657180;
    --field: #171b21;
    --error: #ffb4ab;
    --focus: #f2a900;
  }

  html[data-brand-domain="assault.digital"] {
    --canvas: #111b15;
    --surface: #19271e;
    --text: #f0f7f1;
    --muted: #bdcbbf;
    --border: #647a68;
    --focus: #78d49a;
  }

  input { color: var(--text); }
  .entrance__panel { box-shadow: 0 1.25rem 3.5rem rgb(0 0 0 / 28%); }
}
