:root {
  color-scheme: light dark;
  --bg: #f5f5f5;
  --text: #172331;
  --muted: #566473;
  --primary: #30638e;
  --line: #cbd1d8;
  --field: #fff;
  --focus: #123c60;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
header {
  max-width: 1200px;
  margin: auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
header img {
  width: 120px;
  display: block;
}
.dark-logo {
  display: none;
}
a {
  color: var(--primary);
  text-underline-offset: 4px;
}
header > a:last-child {
  font-size: 14px;
}
main {
  max-width: 480px;
  margin: 70px auto 64px;
  padding: 0 24px;
}
.edition {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 18px;
}
h1 {
  font-size: 42px;
  letter-spacing: -1.3px;
  line-height: 1.18;
  font-weight: 650;
  margin: 0 0 22px;
}
.intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 36px;
}
form {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
label {
  font-weight: 600;
  display: block;
}
#key-help {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 12px;
}
input[type='password'] {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
}
button {
  width: 100%;
  background: #30638e;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 600;
  margin-top: 18px;
  cursor: pointer;
}
button:hover {
  background: #254f72;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.help {
  margin: 28px 0 0;
  font-size: 14px;
}
#key-error {
  font-size: 14px;
  color: #ac2525;
}
footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 0 24px 32px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --text: #eaeef2;
    --muted: #a1adb8;
    --primary: #c0e0de;
    --line: #3a4047;
    --field: #1e2227;
    --focus: #c0e0de;
  }
  .light-logo {
    display: none;
  }
  .dark-logo {
    display: block;
  }
  #key-error {
    color: #ffa1a1;
  }
}
@media (max-width: 540px) {
  header {
    padding: 22px 20px;
  }
  header img {
    width: 96px;
  }
  main {
    margin: 42px auto;
  }
  h1 {
    font-size: 36px;
  }
}
