* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-width: 1200px;
  min-height: 100%;
}

body {
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans KR",
    sans-serif;

  color: #111111;
  background-color: #f8f8fd;
}

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

button,
input {
  font: inherit;
}

button {
  border: none;
}

/* 메인 */

.signup-main {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 60px 20px;
}

/* 회원가입 카드 */

.signup-card {
  width: 640px;

  padding: 65px 72px 48px;

  background-color: #ffffff;
  border-radius: 22px;
}

.signup-card-header {
  margin-bottom: 30px;
  text-align: center;
}

.signup-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-bottom: 10px;
}

.signup-logo {
    color: #2450d8;

    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.2px;

    cursor: pointer;
}

.signup-logo:hover {
    color: #1d43bd;
}

.signup-title {
    color: #111111;

    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.signup-description {
  color: #5d5f69;
  font-size: 16px;
  font-weight: 500;
}

/* 폼 */

.signup-form {
  width: 100%;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;

  margin-bottom: 9px;
  padding-left: 8px;

  color: #111111;
  font-size: 15px;
  font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  height: 56px;

  padding: 0 19px;

  color: #222222;
  font-size: 15px;

  background-color: #ffffff;

  border: 1px solid #b9bbc6;
  border-radius: 9px;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: #797b86;
}

.form-group input:hover {
  border-color: #9295a1;
}

.form-group input:focus {
  border-color: #2450d8;
  box-shadow: 0 0 0 3px rgba(36, 80, 216, 0.1);
}

.form-group input.input-error {
  border-color: #eb4444;
}

.form-group input.input-success {
  border-color: #2cc945;
}

.input-button-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-button-row input {
  flex: 1;
  min-width: 0;
}

.side-button {
  flex: 0 0 112px;
  height: 56px;

  color: #ffffff;
  font-size: 14px;
  font-weight: 700;

  background-color: #2450d8;

  border-radius: 9px;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.side-button:hover {
  background-color: #1e43bc;
}

.side-button:active {
  transform: scale(0.98);
}

.side-button:disabled {
  background-color: #a3afe0;
  cursor: not-allowed;
}

.verification-row {
  align-items: stretch;
}

.timer-box {
  flex: 0 0 88px;
  height: 56px;

  display: none;
  align-items: center;
  justify-content: center;

  color: #2450d8;
  font-size: 15px;
  font-weight: 700;

  background-color: #ffffff;

  border: 1px solid #2450d8;
  border-radius: 9px;
}

.resend-button {
  flex: 0 0 104px;
  height: 56px;

  display: none;

  color: #ffffff;
  font-size: 14px;
  font-weight: 700;

  background-color: #2450d8;

  border-radius: 9px;
  cursor: pointer;
}

.resend-button:hover {
  background-color: #1e43bc;
}

.email-message-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.error-message,
.success-message {
  min-height: 0;

  margin-top: 5px;
  padding-left: 8px;

  font-size: 12px;
  line-height: 1.4;
}

.error-message {
  color: #eb4444;
}

.success-message {
  color: #27c83f;
}

.error-message:empty,
.success-message:empty {
  display: none;
}

/* 약관 */

.terms-section {
  margin-top: 4px;
  margin-bottom: 20px;
}

.terms-title {
  margin-bottom: 10px;
  padding-left: 8px;

  font-size: 15px;
  font-weight: 700;
}

.terms-box {
  overflow: hidden;

  border: 1px solid #d9dce6;
  border-radius: 9px;
}

.term-row {
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 14px;

  background-color: #ffffff;
}

.all-term-row {
  min-height: 48px;
  justify-content: flex-start;

  margin: 0;
  padding: 0 14px !important;

  background-color: #f1f5ff;

  cursor: pointer;
}

.term-divider {
  height: 1px;
  background-color: #e8eaf1;
}

.term-label {
  flex: 1;

  display: flex !important;
  align-items: center;

  margin: 0 !important;
  padding: 0 !important;

  cursor: pointer;
}

.term-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  width: 17px;
  height: 17px;

  flex-shrink: 0;

  margin-right: 11px;

  background-color: #ffffff;

  border: 1.5px solid #2450d8;
  border-radius: 3px;

  position: relative;
}

.term-checkbox:checked + .custom-checkbox {
  background-color: #2450d8;
}

.term-checkbox:checked + .custom-checkbox::after {
  content: "";

  position: absolute;

  left: 4px;
  top: 1px;

  width: 5px;
  height: 9px;

  border: solid #ffffff;
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

.term-main-text {
  color: #222222;
  font-size: 13px;
  font-weight: 700;
}

.term-description {
  margin-left: 16px;

  color: #8b8d96;
  font-size: 11px;
  font-weight: 400;
}

.required-text {
  margin-right: 4px;

  color: #2450d8;
  font-size: 12px;
  font-weight: 700;
}

.optional-text {
  margin-right: 4px;

  color: #676a75;
  font-size: 12px;
  font-weight: 500;
}

.term-text {
  color: #33343a;
  font-size: 12px;
  font-weight: 600;
}

.term-detail-button {
  width: 32px;
  height: 32px;

  color: #697080;
  font-size: 21px;

  background-color: transparent;

  cursor: pointer;
}

.term-detail-button:hover {
  color: #2450d8;
}

/* 회원가입 버튼 */

.signup-button {
  width: 100%;
  height: 58px;

  color: #ffffff;
  font-size: 19px;
  font-weight: 700;

  background-color: #2450d8;

  border-radius: 9px;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.signup-button:hover {
  background-color: #1e43bc;
}

.signup-button:active {
  transform: scale(0.995);
}

.signup-button:disabled {
  background-color: #a5b2e5;
  cursor: not-allowed;
}

.signup-error-message {
  min-height: 20px;

  margin-top: 9px;

  color: #eb4444;
  font-size: 13px;
  text-align: center;
}

/* 로그인 이동 */

.login-area {
  margin-top: 22px;
  text-align: center;
}

.login-area p {
  margin-bottom: 3px;

  color: #666873;
  font-size: 14px;
}

.login-area a {
  color: #2450d8;
  font-size: 14px;
  font-weight: 700;
}

.login-area a:hover {
  text-decoration: underline;
}

/* 약관 모달 */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background-color: rgba(17, 23, 40, 0.45);
}

.modal-overlay.open {
  display: flex;
}

.term-modal {
  width: 520px;
  max-height: 650px;

  padding: 25px;

  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(30, 42, 80, 0.18);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 17px;

  border-bottom: 1px solid #eceef4;
}

.modal-header h2 {
  font-size: 20px;
}

.modal-close-button {
  width: 34px;
  height: 34px;

  color: #555965;
  font-size: 26px;

  background-color: transparent;

  cursor: pointer;
}

.modal-content {
  max-height: 440px;
  overflow-y: auto;

  padding: 21px 4px;

  color: #50525c;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}

.modal-confirm-button {
  width: 100%;
  height: 50px;

  color: #ffffff;
  font-size: 16px;
  font-weight: 700;

  background-color: #2450d8;

  border-radius: 8px;
  cursor: pointer;
}