.register-page {
  background: #fff;
  color: #111915;
}

.register-page main {
  padding: 148px 20px 80px;
}

.register-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.register-hero {
  text-align: center;
  margin-bottom: 40px;
}

.register-hero > span {
  display: block;
  margin-bottom: 14px;
  color: #0a513c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.register-hero h1 {
  margin: 0 0 16px;
  color: #0a513c;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.register-hero p {
  margin: 0;
  color: #68736e;
  font-size: 15px;
  line-height: 1.6;
}

.register-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.register-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 88px;
}

.register-step-circle {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d9dedc;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.register-step span:last-child {
  color: #98a29d;
  font-size: 13px;
  font-weight: 600;
}

.register-step.is-active .register-step-circle {
  background: #0a513c;
}

.register-step.is-active span:last-child {
  color: #0a513c;
}

.register-step-line {
  width: clamp(48px, 12vw, 120px);
  height: 1px;
  margin: -28px 8px 0;
  background: #e1e5e3;
}

.register-section {
  margin-bottom: 40px;
}

.register-section h2 {
  margin: 0 0 20px;
  color: #0a513c;
  font-size: 18px;
  font-weight: 700;
}

.register-agree-all {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid #0a513c;
  border-radius: 10px;
  background: var(--color-mint-bg, #f5f6f8);
}

.register-agree-all label {
  color: #0a513c;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.register-terms-list {
  overflow: hidden;
  border: 1px solid #e5e8e6;
  border-radius: 10px;
  background: #fff;
}

.register-term-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #eef1ef;
}

.register-term-row:first-child {
  border-top: 0;
}

.register-term-row label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #2b3530;
}

.register-term-row .term-badge {
  font-weight: 700;
}

.register-term-row .term-badge.required {
  color: #d64545;
}

.register-term-row .term-badge.optional {
  color: #68736e;
}

.register-term-row .term-view {
  flex-shrink: 0;
  color: #68736e;
  font-size: 13px;
  text-decoration: none;
}

.register-term-row .term-view:hover {
  color: #0a513c;
  text-decoration: underline;
}

.register-field {
  margin-bottom: 18px;
}

.register-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111915;
}

.register-field label .req {
  color: #d64545;
}

.register-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #dfe4e1;
  border-radius: 10px;
  background: #fff;
  color: #111915;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.register-field input:focus {
  outline: none;
  border-color: #0a513c;
}

.register-field input::placeholder {
  color: #a3aca7;
}

.register-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.register-minor-notice {
  margin: -6px 0 20px;
  padding: 12px 14px;
  border: 1px solid #e3eadf;
  border-radius: 10px;
  background: #f7faf3;
  color: #3f564b;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.55 !important;
}

.register-email-row {
  display: flex;
  gap: 10px;
}

.register-email-row .register-field {
  flex: 1;
  margin-bottom: 0;
}

.btn-email-check {
  flex-shrink: 0;
  align-self: flex-end;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #0a513c;
  border-radius: 10px;
  background: #fff;
  color: #0a513c;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-email-check:hover {
  background: #0a513c;
  color: #fff;
}

.btn-email-check.is-done {
  border-color: #0a513c;
  background: #f5f6f8;
  color: #0a513c;
}

.register-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.btn-register-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #0a513c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-register-submit:hover {
  background: #084634;
}

.btn-register-cancel {
  width: 100%;
  height: 52px;
  border: 1px solid #dfe4e1;
  border-radius: 10px;
  background: #fff;
  color: #52605a;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-register-cancel:hover {
  background: #f7f9f8;
}

.register-footer-link {
  margin-top: 24px;
  text-align: center;
  color: #68736e;
  font-size: 14px;
}

.register-footer-link a {
  color: #0a513c;
  font-weight: 700;
  text-decoration: none;
}

.register-footer-link a:hover {
  text-decoration: underline;
}

.register-check {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.register-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.register-check-box {
  display: block;
  width: 18px;
  height: 18px;
  border: 1.5px solid #b8c0bc;
  border-radius: 10px;
  background: #fff;
}

.register-check input:checked + .register-check-box {
  border-color: #0a513c;
  background: #0a513c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5.2L4.4 8.6L11 1.8' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

.register-term-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.register-term-modal.is-open {
  display: flex;
}

.register-term-modal-box {
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 10px;
  background: #fff;
}

.register-term-modal-box h3 {
  margin: 0 0 16px;
  color: #0a513c;
  font-size: 18px;
}

.register-term-modal-box .term-body {
  color: #52605a;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-line;
}

.register-term-modal-box .btn-modal-close {
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: #0a513c;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.register-field-msg {
  margin-top: 6px;
  font-size: 12px;
}

.register-field-msg.error {
  color: #d64545;
}

.register-field-msg.success {
  color: #0a513c;
}

@media (max-width: 640px) {
  .register-page main {
    padding-top: 116px;
  }

  .register-steps {
    margin-bottom: 36px;
  }

  .register-step-line {
    width: 36px;
  }

  .register-field-row {
    grid-template-columns: 1fr;
  }

  .register-email-row {
    flex-direction: column;
  }

  .btn-email-check {
    width: 100%;
  }
}
