.layout {
  width: 100%;
  min-width: 375px;
  max-width: 767px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--color-bg);
}

.container {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.signup-2-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  padding-bottom: 28px;
}

.signup-2-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 22px;
  border-bottom: 2px solid #b7b7b7;
}

.back-button {
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-button span {
  display: block;
  width: 12px;
  height: 12px;
  border-left: 2px solid #111111;
  border-bottom: 2px solid #111111;
  transform: rotate(45deg);
}

.signup-2-title {
  font-size: var(--font-lg);
  font-weight: 600;
  line-height: 1;
  color: var(--color-black);
}

.signup-2-content {
  padding-top: 18px;
}

.signup-form {
  display: flex;
  flex-direction: column;
}

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

.form-label {
  display: block;
  margin-bottom: 12px;
  font-size: var(--font-xs);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 8px;
}

.input-row-single {
  gap: 0;
}

.input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  height: 36px;
  font-size: var(--font-xs);
  font-weight: 400;
  color: var(--color-black);
}

.input-row input::placeholder {
  color: #9d9d9d;
  font-size: var(--font-xs);
  font-weight: 400;
}

.line-button {
  flex-shrink: 0;
  min-width: 53px;
  height: 21px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-3xs);
  font-weight: 300;
  cursor: pointer;
}

.gender-group {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.radio-item input {
  display: none;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border: 1.5px solid #7f7e7e;
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.radio-item input:checked + .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radio-text {
  font-size: var(--font-xs);
  font-weight: 500;
  color: var(--color-black);
}

.agree-section {
  margin-top: 34px;
}

.agree-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-item input {
  display: none;
}

.custom-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid #7f7e7e;
  border-radius: 50%;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}

.check-item input:checked + .custom-check::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.check-item-all {
  margin-bottom: 2px;
}

.check-text {
  font-size: var(--font-xs);
  font-weight: 400;
  color: #7f7e7e;
}

.check-text.strong {
  font-size: var(--font-md);
  font-weight: 500;
  color: var(--color-black);
}

.signup-submit-wrap {
  margin-top: auto;
  padding-top: 46px;
}

.signup-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-md);
  font-weight: 500;
  cursor: pointer;
}

@media (min-width: 768px) {
  .signup-2-page {
    padding-top: 40px;
    padding-bottom: 34px;
  }

  .signup-2-header {
    padding-bottom: 24px;
  }

  .signup-2-title {
    font-size: var(--font-3xl);
  }

  .form-label {
    font-size: var(--font-xl);
  }

  .input-row input,
  .input-row input::placeholder,
  .radio-text,
  .check-text {
    font-size: var(--font-sm);
  }

  .check-text.strong {
    font-size: var(--font-2xl);
  }

  .signup-submit-btn {
    height: 64px;
    font-size: var(--font-2xl);
  }
}
