:root {
  color-scheme: dark;
  --bg: #050705;
  --panel: #0d1410;
  --panel-raised: #111c14;
  --line: #2b3c30;
  --text: #f1f4ef;
  --muted: #a8b2a9;
  --accent: #7dff4c;
  --accent-strong: #25bc1f;
  --danger: #ef7676;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.public-shell {
  width: min(960px, 100%);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: #071007;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  font-size: 20px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.download-card {
  border: 1px solid var(--line);
  background: #08100b;
  padding: 20px;
}

.download-card h2 {
  margin-bottom: 10px;
}

.download-card p {
  min-height: 48px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: #001600;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0 18px;
}

.download-card .button {
  width: 100%;
  margin-top: 18px;
}

.button.secondary {
  color: var(--text);
  background: var(--panel-raised);
}

.signup-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.signup-callout h2 {
  margin-bottom: 6px;
}

.form-shell {
  width: min(720px, 100%);
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

label.full,
.form-actions,
.form-status {
  grid-column: 1 / -1;
}

input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #526258;
  border-radius: 4px;
  outline: none;
  background: #070c08;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(125 255 76 / 20%);
}

.password-note {
  grid-column: 1 / -1;
  font-size: 13px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-actions button {
  min-width: 180px;
}

.text-link {
  color: var(--accent);
}

.form-status {
  min-height: 24px;
}

.form-status.error {
  color: var(--danger);
}

.success-panel {
  margin-top: 26px;
  border-left: 4px solid var(--accent-strong);
  background: #08100b;
  padding: 20px;
}

.success-panel h2 {
  margin-bottom: 8px;
}

.success-panel .button {
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  main {
    padding: 18px;
  }

  .public-shell {
    padding: 20px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: 23px;
  }

  .download-grid,
  .signup-form,
  .signup-callout {
    grid-template-columns: 1fr;
  }

  .signup-callout .button,
  .form-actions button {
    width: 100%;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
