:root {
  --paper: #fbfaf7;
  --ink: #111110;
  --muted: #746f67;
  --line: #bdb7ae;
  --soft-line: #ded8cf;
  --accent: #bd5537;
  --success: #4e6b55;
  --error: #a13d2d;
  --signup-gap: 34px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Pretendard", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 32px;
}

.wordmark {
  font-family: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: 37px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-link {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.signup-page {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: 58px 24px 72px;
}

.signup-panel {
  width: min(520px, 100%);
  margin: 0 auto;
}

.signup-heading {
  text-align: center;
}

.signup-heading > p {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.signup-heading h1 {
  margin: 16px 0 0;
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
  font-size: 39px;
  line-height: 1.15;
  font-weight: 400;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.steps .active {
  color: var(--accent);
}

.steps i {
  width: 35px;
  height: 1px;
  background: var(--ink);
}

.page-marker {
  position: absolute;
  top: 41px;
  right: clamp(26px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  writing-mode: vertical-rl;
}

.page-marker i {
  width: 1px;
  height: 65px;
  background: var(--line);
}

form {
  margin-top: 50px;
}

.field {
  margin-bottom: var(--signup-gap);
}

.field > label,
.member-type legend {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.field-label-row label {
  font-size: 13px;
  font-weight: 500;
}

.department-help-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.5;
}

.department-help-button:hover,
.department-help-button:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.line-control {
  position: relative;
  min-height: 44px;
  border-bottom: 1px solid #89847d;
}

.line-control input,
.line-control select {
  width: 100%;
  height: 43px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.line-control select {
  appearance: none;
  cursor: pointer;
}

.line-control select:invalid {
  color: #a6a097;
}

.line-control input::placeholder {
  color: #a6a097;
}

.line-control:focus-within {
  border-bottom-color: var(--ink);
}

.line-control.invalid {
  border-bottom-color: var(--error);
}

.line-control.invalid input {
  color: var(--error);
}

.line-control.valid {
  border-bottom-color: var(--success);
}

.personal-fields {
  margin: 0 0 var(--signup-gap);
}

.personal-fields .field:last-child {
  margin-bottom: 0;
}

.birth-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.birth-picker {
  position: relative;
}

.birth-native {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.birth-picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.birth-picker-button::after {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.birth-picker-button:focus-visible,
.birth-picker.is-open .birth-picker-button {
  border-color: var(--ink);
}

.birth-picker.is-open .birth-picker-button::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.birth-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 45;
  max-height: 184px;
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(17, 17, 16, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 190ms ease,
    transform 190ms ease,
    visibility 190ms ease;
  visibility: hidden;
}

.birth-picker.is-open .birth-picker-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.birth-picker-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.birth-picker-option:hover,
.birth-picker-option.is-selected {
  background: #f0ede7;
  color: var(--ink);
}

.birth-picker-option.is-selected {
  color: var(--accent);
}

.action-control {
  padding-right: 128px;
}

.outline-button {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  min-width: 114px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.outline-button:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

button:disabled {
  cursor: default;
  opacity: 0.38;
}

.verification-code {
  display: none;
}

.verification-code.visible {
  display: block;
}

.code-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 114px 54px;
  gap: 13px;
  align-items: end;
  border-bottom: 0;
}

.code-control input {
  border-bottom: 1px solid #89847d;
}

.code-control .outline-button,
.code-control .text-button {
  position: static;
}

.timer {
  align-self: center;
  color: var(--accent);
  font-size: 12px;
  text-align: center;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.password-control {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ink);
}

.password-toggle:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.eye-slash.is-hidden {
  display: none;
}

.message {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.message:empty {
  display: none;
}

.message.success,
.form-message.success {
  color: var(--success);
}

.message.error,
.form-message.error {
  color: var(--error);
}

.member-type {
  position: relative;
  z-index: 20;
  margin: 0 0 var(--signup-gap);
  padding: 0;
  border: 0;
}

.member-type legend.member-type-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: max-content;
}

.member-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.member-options label {
  cursor: pointer;
}

.member-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.member-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 45px;
  color: var(--muted);
  font-size: 12px;
}

.member-options span i {
  width: 15px;
  height: 15px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.member-options input:checked + span {
  color: var(--ink);
}

.member-options input:checked + span i {
  border: 4px solid var(--paper);
  background: var(--accent);
  outline: 1px solid var(--accent);
}

.general-student-toggle {
  margin: -4px 0 var(--signup-gap);
}

.general-student-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 2px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.general-student-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.general-student-check {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.general-student-check::after {
  width: 7px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.general-student-box input:checked + .general-student-check {
  border-color: var(--accent);
  background: var(--accent);
}

.general-student-box input:checked + .general-student-check::after {
  opacity: 1;
}

.general-student-label {
  display: inline-flex;
  align-items: center;
}

.general-student-arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: -7px;
  border-right: 1.6px solid #9a958c;
  border-bottom: 1.6px solid #9a958c;
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.general-student-box input:checked ~ .general-student-arrow {
  transform: rotate(45deg);
}

.student-details {
  position: relative;
  z-index: 10;
  margin: -2px 0 var(--signup-gap);
  animation: studentDetailsOpen 180ms ease both;
}

.student-details .field:last-child {
  margin-bottom: 0;
}

.department-search {
  z-index: 6;
}

.department-search-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 43px;
  padding: 0 28px 0 2px;
  border: 0;
  background: transparent;
  color: #a6a097;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.department-search-button span,
.grade-select-button span {
  display: block;
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-manual-input {
  width: 100%;
  height: 43px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.department-manual-input::placeholder {
  color: #a6a097;
}

.department-search-button::after {
  position: absolute;
  right: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  content: "";
  transition: transform 180ms ease;
  transform: rotate(45deg);
}

.department-search.is-open .department-search-button::after {
  transform: translateY(4px) rotate(225deg);
}

.department-search.has-value .department-search-button {
  color: var(--ink);
}

.department-manual-panel {
  margin: 0 0 16px;
}

.department-manual-notice {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  word-break: keep-all;
}

.department-manual-notice strong {
  color: #8f877d;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.student-details.is-general-member .department-manual-notice {
  display: none;
}

.department-manual-control {
  margin-top: 0;
}

.department-search-panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  max-height: 0;
  border: 1px solid var(--soft-line);
  background: #fffefa;
  box-shadow: 0 18px 36px rgba(34, 30, 25, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.department-search.is-open .department-search-panel {
  max-height: 330px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.department-search-input {
  display: block;
  width: calc(100% - 24px);
  height: 42px;
  margin: 12px;
  padding: 0 12px;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}

.department-search-input::placeholder {
  color: #a6a097;
}

.department-search-input:focus {
  border-color: var(--ink);
}

.department-options {
  max-height: 242px;
  overflow-y: auto;
}

.department-option,
.department-empty {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid #eee8df;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  line-height: 42px;
  text-align: left;
}

.department-option {
  cursor: pointer;
}

.department-option:hover,
.department-option.is-selected {
  background: #f4f0ea;
  color: var(--accent);
}

.department-empty {
  color: var(--muted);
}

.grade-select {
  z-index: 4;
}

.grade-select-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 43px;
  padding: 0 28px 0 2px;
  border: 0;
  background: transparent;
  color: #a6a097;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.grade-select-button::after {
  position: absolute;
  right: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  content: "";
  transition: transform 180ms ease;
  transform: rotate(45deg);
}

.grade-select.is-open .grade-select-button::after {
  transform: translateY(4px) rotate(225deg);
}

.grade-select.has-value .grade-select-button {
  color: var(--ink);
}

.grade-select-options {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  max-height: 0;
  border: 1px solid var(--soft-line);
  background: #fffefa;
  box-shadow: 0 18px 36px rgba(34, 30, 25, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.grade-select.is-open .grade-select-options {
  max-height: 250px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.grade-option {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #eee8df;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.grade-option:last-child {
  border-bottom: 0;
}

.grade-option:hover,
.grade-option.is-selected {
  background: #f4f0ea;
  color: var(--accent);
}

@keyframes studentDetailsOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.identity-upload {
  position: relative;
  margin: 0 0 var(--signup-gap);
}

.upload-copy-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}

.upload-copy strong {
  font-size: 14px;
  font-weight: 500;
}

.identity-guide-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: #8a8278;
  cursor: pointer;
  padding: 0;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.identity-guide-toggle:hover {
  color: #6d655d;
}

.guide-icon {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-icon-chevron {
  transform-origin: 12px 12px;
  transition: transform 180ms ease;
}

.identity-guide-toggle.is-open .guide-icon-chevron {
  transform: rotate(180deg);
}

.identity-guide-panel {
  position: absolute;
  z-index: 5;
  top: 43px;
  right: auto;
  left: 50%;
  width: min(920px, calc(100vw - 48px));
  translate: -50% 0;
  margin: 0;
  overflow: visible;
  border: 1px solid #d8d2c9;
  border-radius: 24px;
  background: #fffefa;
  box-shadow: 0 18px 45px rgba(34, 30, 25, 0.1);
}

.identity-guide-panel::before,
.identity-guide-panel::after {
  position: absolute;
  left: 112px;
  width: 22px;
  height: 22px;
  content: "";
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
}

.identity-guide-panel::before {
  top: -1px;
  border-top: 1px solid #d8d2c9;
  border-left: 1px solid #d8d2c9;
  background: #fffefa;
}

.identity-guide-panel::after {
  top: 0;
  background: #fffefa;
}

.identity-upload .identity-guide-panel::before,
.identity-upload .identity-guide-panel::after {
  left: 309px;
}

.identity-guide-panel:not([hidden]) {
  animation: guidePanelOpen 180ms ease both;
}

.identity-guide-page {
  position: relative;
  z-index: 1;
  min-height: 340px;
  max-height: 460px;
  overflow-y: auto;
  padding: 30px 28px 28px;
}

.identity-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
}

.identity-guide-title {
  margin: 0;
  color: #181512;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.identity-guide-note {
  max-width: none;
  margin: 1px 0 0;
  color: #8a837a;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
  word-break: keep-all;
}

.identity-guide-images {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 20px minmax(0, 1fr) 20px
    minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.identity-guide-images figure {
  margin: 0;
}

.identity-guide-images figcaption {
  margin-top: 10px;
  color: #5f5850;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

.identity-guide-images img {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid #e2dcd2;
  border-radius: 14px;
  object-fit: contain;
  background: #111;
}

.identity-guide-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b8378;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 720px) {
  .identity-guide-panel {
    right: 0;
    left: 0;
    width: auto;
    translate: none;
  }

  .identity-guide-head {
    display: block;
  }

  .identity-guide-note {
    max-width: none;
    margin-top: 8px;
    text-align: left;
    white-space: normal;
  }

  .identity-guide-images {
    grid-template-columns: 1fr;
  }

  .identity-guide-images img {
    height: auto;
  }

  .identity-guide-arrow {
    transform: rotate(90deg);
  }
}

.member-type .identity-guide-panel.member-type-guide-panel {
  position: absolute;
  top: 16px;
  right: auto;
  left: auto;
  z-index: 30;
  width: 100%;
  translate: none;
  margin: 0;
}

.member-type .identity-guide-panel.member-type-guide-panel::before,
.member-type .identity-guide-panel.member-type-guide-panel::after {
  left: 38px;
}

.member-type .identity-guide-page.member-type-guide-page {
  min-height: 180px;
  max-height: 220px;
}

.member-type-guide-page h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.member-type-guide-page p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  word-break: keep-all;
}

.member-type-guide-page p:last-child {
  margin-bottom: 0;
}

.member-type-guide-page strong {
  color: var(--ink);
  font-weight: 700;
}

@keyframes guidePanelOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upload-copy p {
  margin: 7px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.upload-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid #cfc8bd;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(243, 241, 236, 0.8)),
    #f3f1ec;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.upload-box:hover {
  border-color: var(--ink);
  background: #f8f6f1;
}

.upload-box img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #efede7;
}

.upload-box img[hidden] {
  display: none;
}

.upload-empty {
  display: grid;
  place-items: center;
  min-height: 188px;
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}

.upload-empty span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #a99f92;
  border-radius: 50%;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.upload-empty strong {
  margin-top: 15px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.upload-empty p {
  margin: 6px 0 0;
  font-size: 10px;
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
}

#identity-image {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.file-button {
  display: grid;
  place-items: center;
  min-width: 104px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 11px;
}

.file-button:hover {
  background: var(--ink);
  color: #fff;
}

.remove-image {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agreements {
  margin-top: 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.agreement {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.agreement input {
  width: 15px;
  height: 15px;
  margin: 0 10px 0 0;
  accent-color: var(--ink);
}

.agreement b,
.agreement em {
  margin-right: 7px;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.agreement em {
  color: #8b857c;
}

.agreement a {
  margin-left: auto;
  padding: 7px 0 7px 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agreement-view-button {
  margin-left: auto;
  padding: 7px 0 7px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agreement-all {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.agreement-divider {
  height: 1px;
  margin: 7px 0;
  background: var(--soft-line);
}

.agreement-note {
  margin: -1px 0 8px 25px;
  color: #8b857c;
  font-size: 10px;
  line-height: 1.5;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
}

.terms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 16, 0.34);
  backdrop-filter: blur(5px);
}

.terms-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 60px));
  padding: 32px 34px 28px;
  border: 1px solid var(--soft-line);
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(17, 17, 16, 0.2);
}

.terms-modal-panel h2 {
  margin: 0 0 20px;
  font-family: "Times New Roman", "Noto Serif KR", serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0;
}

.terms-modal-content {
  overflow-y: auto;
  padding-right: 8px;
  color: #3f3b36;
  font-size: 13px;
  line-height: 1.85;
  word-break: keep-all;
}

.terms-modal-content p {
  margin: 0 0 15px;
}

.terms-modal-confirm {
  align-self: flex-end;
  min-width: 94px;
  height: 40px;
  margin-top: 22px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.pending-verification-panel {
  width: min(560px, 100%);
  align-items: center;
  text-align: center;
}

.pending-verification-panel h2 {
  margin-bottom: 15px;
}

.pending-verification-copy {
  margin: 0;
  color: #2b2825;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.pending-verification-panel .terms-modal-confirm {
  align-self: center;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  margin-top: 18px;
  padding: 0 21px 0 25px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.submit-button span {
  font-size: 27px;
  line-height: 1;
}

.submit-button:hover {
  border-color: #a7462d;
  background: #a7462d;
}

.form-message {
  min-height: 17px;
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.login-prompt {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.login-prompt a {
  margin-left: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}

@media (max-width: 720px) {
  .page-marker {
    display: none;
  }

  .signup-page {
    padding-top: 45px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .wordmark {
    font-size: 30px;
  }

  .signup-page {
    min-height: calc(100vh - 64px);
    padding: 38px 20px 58px;
  }

  .signup-heading h1 {
    font-size: 34px;
  }

  form {
    margin-top: 42px;
  }

  .action-control {
    padding-right: 116px;
  }

  .outline-button {
    min-width: 104px;
    padding-inline: 9px;
  }

  .code-control {
    grid-template-columns: minmax(0, 1fr) 48px 104px;
  }

  .code-control .text-button {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 25px;
  }

  .member-options {
    gap: 4px;
  }

  .member-options span {
    gap: 7px;
  }

  .upload-box {
    min-height: 172px;
  }

  .upload-box img {
    height: 190px;
  }
}
