:root {
  color-scheme: light;
  --ink: #172837;
  --muted: #627384;
  --blue: #3078df;
  --line: #dce5ee;
  --soft: #f3f7fc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    16px/1.7 -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
  letter-spacing: -0.035em;
}
.header {
  max-width: 1160px;
  margin: auto;
  padding: 23px 32px;
  border-bottom: 1px solid #eff2f5;
}
.header a {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--ink);
}
.header span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
main {
  width: min(530px, calc(100% - 40px));
  margin: 48px auto 72px;
}
.eyebrow {
  font-size: 12px;
  color: var(--blue);
  font-weight: 650;
  margin: 0 0 10px;
}
h1 {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.055em;
  margin: 0 0 12px;
}
.intro {
  color: var(--muted);
  margin: 0 0 28px;
  word-break: keep-all;
}
form {
  display: grid;
  gap: 18px;
}
form > label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
small {
  color: var(--muted);
  font-weight: 400;
}
input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}
input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #87b8ff;
  outline-offset: 3px;
}
input:focus::placeholder {
  color: transparent;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
legend {
  font-weight: 600;
  margin-bottom: 10px;
}
.radio,
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}
.radio {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.radio:has(input:checked) {
  border-color: var(--blue);
  background: var(--soft);
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex: 0 0 18px;
  margin: 0;
}
.consents {
  border-block: 1px solid var(--line);
  padding: 10px 0;
}
.check {
  align-items: flex-start;
  padding: 8px 0;
}
.check input {
  margin-top: 5px;
}
details {
  margin: 0 0 4px 28px;
  color: var(--muted);
  font-size: 13px;
}
summary {
  min-height: 36px;
  text-decoration: underline;
  cursor: pointer;
}
details p {
  margin: 4px 0 10px;
}
.pending {
  color: #8a5c17;
}
.benefit {
  border-radius: 12px;
  background: var(--soft);
  padding: 18px 20px;
  word-break: keep-all;
}
.benefit h2 {
  font-size: 18px;
  color: var(--blue);
  margin: 0 0 6px;
}
.benefit p {
  margin: 0;
}
.actions {
  display: grid;
  gap: 10px;
}
button,
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.secondary {
  background: #edf3fa;
  color: var(--ink);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.error {
  margin: 0;
  color: #b42318;
}
.error[hidden],
section[hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  .header {
    padding: 20px;
  }
  .header {
    margin: 0 16px;
  }
  main {
    margin-top: 32px;
  }
  h1 {
    font-size: 28px;
  }
}

input,
button {
  font-size: 16px;
}
small {
  font-weight: 400;
  color: var(--muted);
}
.login-link {
  text-align: center;
}
.button {
  margin-top: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e7edf5;
    --muted: #a5b3c4;
    --line: #34404e;
    --soft: #222d3b;
  }
  body {
    background: #151c25;
  }
  input:not([type="checkbox"]):not([type="radio"]) {
    background: #1d2733;
    color: var(--ink);
  }
  a {
    color: #97bbef;
  }
}
