:root {
  --page-bg: #edf0f6;
  --panel-bg: #eceff6;
  --line: #d7dbe4;
  --title-a: #59bce8;
  --title-b: #7878f1;
  --text: #5a6070;
  --muted: #8f95a4;
  --btn-white: #f6f7f9;
  --primary-a: #6b3fe4;
  --primary-b: #409fe3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--page-bg);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: 100%;
  max-width: 460px;
  min-height: 730px;
  background: var(--panel-bg);
  border-radius: 8px;
  padding: 76px 36px 34px;
  position: relative;
}

.locale {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #c8ced8;
  background: #d6dce6;
  color: #808694;
  cursor: pointer;
}

.title {
  margin: 0;
  text-align: center;
  font-size: 44px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 12px 0 0;
  text-align: center;
  color: #666d78;
  font-size: 19px;
  font-weight: 500;
}

.divider {
  margin: 42px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.email-divider {
  margin-top: 48px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.actions {
  display: grid;
  gap: 10px;
}

.btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary-a), var(--primary-b));
}

.btn-white {
  color: #4f5664;
  background: var(--btn-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon {
  width: 18px;
  text-align: center;
  font-size: 16px;
}

.footer-links {
  margin-top: 48px;
  display: grid;
  gap: 8px;
}

.btn-signup {
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: #4b54d8;
  background: #f3f4ff;
  border: 1px solid #a9b0ff;
}

.text-link {
  background: transparent;
  border: 0;
  color: #5c6371;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(20, 27, 39, 0.42);
}

.modal-body {
  width: min(94vw, 760px);
  margin: 0;
  padding: 20px;
  border-radius: 14px;
  background: #f5f7fc;
  display: grid;
  gap: 10px;
  position: relative;
  max-height: 86vh;
  overflow-y: auto;
}

.modal-sm {
  width: min(92vw, 360px);
  max-height: none;
}

.modal-sm h2 {
  padding-left: 0;
  font-size: 18px;
}

.modal-body h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  padding-left: 70px;
}

.progress-text {
  margin: 0;
  font-size: 12px;
  color: #7f8798;
}

.signup-stage {
  display: grid;
  gap: 10px;
}

.signup-stage h3 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: #636b7d;
}

.form-card {
  border: 1px solid #dde2ee;
  border-radius: 12px;
  background: #fbfcff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.form-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #5c6274;
}

.two-grid {
  grid-template-columns: 1fr 1fr;
}

.two-grid h4 {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d4d8e1;
  background: #fff;
  padding: 0 11px;
  font-size: 14px;
  font-family: inherit;
}

select,
textarea {
  border-radius: 10px;
  border: 1px solid #d4d8e1;
  background: #fff;
  padding: 10px 11px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

.modal-actions {
  margin-top: 4px;
  display: grid;
  gap: 8px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.span-2 {
  grid-column: span 2;
}

.btn-ghost {
  background: #e7ebf4;
  color: #5f6676;
}

.modal-back {
  position: absolute;
  top: 16px;
  left: 16px;
  border: 0;
  background: transparent;
  color: #5f6676;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.hidden {
  display: none !important;
}

.complete-body {
  text-align: center;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.complete-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #5e6576;
}

.complete-subtext {
  margin: 0 0 6px;
  font-size: 13px;
  color: #7a8193;
}

@media (max-width: 720px) {
  .page {
    padding: 10px;
  }

  .panel {
    min-height: 100vh;
    border-radius: 0;
    padding: 58px 20px 24px;
  }

  .title {
    font-size: 32px;
  }

  .subtitle {
    font-size: 16px;
  }

  .btn {
    height: 44px;
    font-size: 14px;
  }

  .two-grid {
    grid-template-columns: 1fr;
  }
}
