:root {
  color-scheme: dark;
  --bg: #101521;
  --panel: #182133;
  --line: #35415a;
  --text: #f1f5ff;
  --muted: #bbc7de;
  --accent: #a9c2ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.5 system-ui,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top, #253356, transparent 60%), var(--bg);
}
main {
  max-width: 720px;
  padding: 40px 24px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
header span,
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
}
a {
  color: var(--accent);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}
h1 {
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.15;
  margin: 14px 0 22px;
}
p {
  color: var(--muted);
}
button,
input {
  font: inherit;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  min-height: 46px;
}
button {
  background: var(--accent);
  color: #12203b;
  font-weight: 650;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.quiet,
input {
  background: transparent;
  color: var(--text);
}
#login,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
nav a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
}
nav a:hover {
  background: #23304a;
}
nav span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
details {
  margin-top: 26px;
}
summary {
  cursor: pointer;
}
label {
  display: block;
  margin: 18px 0 6px;
}
input {
  width: 100%;
  margin-bottom: 12px;
}
footer {
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0;
}
#message {
  overflow-wrap: anywhere;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #f7d88e;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  main {
    padding: 24px 16px;
  }
  .card {
    padding: 24px 20px;
  }
  header {
    align-items: flex-start;
  }
  header span {
    font-size: 10px;
    text-align: right;
    max-width: 110px;
  }
  nav {
    grid-template-columns: 1fr;
  }
  #login button {
    width: 100%;
  }
}

body {
  min-height: 100vh;
  background-repeat: no-repeat;
}
