/* 회원가입 페이지 스타일 */
.signup-container {
  min-height: calc(100vh - 200px);
  padding: 40px 40px;
  background: #ffffff1a;
}


.signup-card {
  padding: 40px 120px;
}

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

.signup-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

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

.form-row {
  display: flex;
  border-bottom: 1px solid #e1e5e9;
  min-height: 60px;
  align-items: center;
  padding: 15px 0;
}

.form-label-cell {
  width: 150px;
  padding-right: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.form-input-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.required {
  color: #ef4444;
  margin-left: 1px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e1e5e9;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #1b1b1b;
}

.form-help {
  font-size: 10px;
  color: #666;
  margin: 4px 0 0 0;
}

.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-input {
  width: 80px;
  padding: 10px 8px;
  border: 1px solid #e1e5e9;
  font-size: 14px;
  text-align: center;
  background: #fff;
  height: 38px;
  box-sizing: border-box;
}

.phone-input:focus {
  outline: none;
  border-color: #1b1b1b;
}

.phone-input.border-red-500 {
  border-color: #ef4444;
}

.phone-separator {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-input {
  width: 100%;
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s ease;
  z-index: 1;
}

.password-toggle:hover {
  color: #333;
}

.form-error {
  font-size: 12px;
  color: #ef4444;
  margin: 4px 0 0 0;
}

.form-error.hidden {
  display: none;
}

.form-actions {
  margin-top: 30px;
  text-align: center;
  padding: 0% 30%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  margin: 0;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  accent-color: #1b1b1b;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.checkbox-text {
  color: #333;
  font-size: 13px;
}

.privacy-link {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.signup-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #1b1b1b;
  color: white;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.signup-btn:hover {
  background: #333;
}

.signup-btn:active {
  transform: translateY(0);
}

.consent-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #1b1b1b;
  color: white;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.consent-btn:hover {
  background: #333;
}

.consent-btn:active {
  transform: translateY(0);
}

.login-link {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 20px 0 0 0;
}

.login-link-text {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.login-link-text:hover {
  color: #4f46e5;
  text-decoration: underline;
}


/* 반응형 디자인 */
@media (max-width: 768px) {
  .signup-container {
    background: #ffffff1a;
    padding: 15px 12px;
    min-height: calc(100vh - 120px);
  }
  
  .signup-card {
    padding: 20px 18px;
  }
  
  .signup-title {
    font-size: 18px;
  }
  
  
  .form-row {
    flex-direction: column;
    min-height: auto;
    padding: 8px 0;
  }
  
  .form-label-cell {
    width: 100%;
    padding-right: 0;
    margin-bottom: 6px;
    font-size: 10px;
  }
  
  .form-input-cell {
    width: 100%;
  }
  
  .form-input {
    padding: 12px 14px;
    font-size: 15px; /* iOS 줌 방지 */
  }
  
  .phone-input {
    height: 38px;
    padding: 10px 8px;
    font-size: 15px;
  }
  
  .form-label {
    font-size: 13px;
  }
  
  .checkbox-text {
    font-size: 11px;
  }
  
}

@media (max-width: 480px) {
  .signup-container {
    padding: 12px 10px;
    min-height: calc(100vh - 100px);
  }
  
  .signup-card {
    padding: 16px 14px;
  }

  .signup-title {
    font-size: 16px;
  }

  .signup-form {
    gap: 12px;
  }

  .form-row {
    padding: 6px 0;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .phone-input {
    height: 34px;
    padding: 8px 6px;
    font-size: 14px;
  }

  .form-label {
    font-size: 12px;
  }

  .signup-btn {
    padding: 12px;
    font-size: 14px;
  }
  
  .checkbox-text {
    font-size: 10px;
  }
}

/* 동의 섹션 */
.consent-section {
  background: transparent;
  padding: 30px 0;
  margin-top: 20px;
}

.consent-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 30px 0;
  text-align: center;
  border-top: 1.5px solid #1b1b1b;
  padding-top: 20px;
}

/* 동의 페이지 전용 부제목 스타일 */
.consent-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #888;
  margin: 0 0 30px 0;
  text-align: center;
  line-height: 1.4;
}

/* 동의 페이지 전용 스타일 */
.consent-page .consent-title {
  border-top: none;
  padding-top: 20px;
}

/* 전체 동의 */
.all-consent {
  margin-bottom: 30px;
  padding: 15px 0;
  border-bottom: 1px solid #e1e5e9;
}

.all-consent-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.all-consent-checkbox input[type="checkbox"] {
  display: none;
}

.all-consent-checkbox .checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid #333;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.all-consent-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #333;
  border-color: #333;
}

.all-consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 3px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.all-consent-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.consent-group {
  margin-bottom: 20px;
}

.consent-group:last-child {
  margin-bottom: 0;
}

.consent-item {
  margin-bottom: 15px;
  border: 1px solid #e1e5e9;
}

.consent-item:last-child {
  margin-bottom: 0;
}

.consent-checkbox {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  margin: 0;
  background: #fafafa;
}

.consent-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: white;
}

.checkmark.border-red-500 {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #333;
  border-color: #333;
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 2px;
  width: 4px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.consent-checkbox input[type="checkbox"]:checked ~ .consent-content {
  max-height: 400px;
}

.consent-text-content {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e1e5e9;
  padding: 15px;
  background: #f9f9f9;
}

.consent-text-content p {
  margin: 0 0 8px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.consent-text-content p:last-child {
  margin-bottom: 0;
}

.sub-consent-row {
  display: flex;
  gap: 40px;
  margin: 15px 0;
  padding: 0 20px;
}

.sub-consent {
  flex: 1;
}

.sub-consent .consent-checkbox {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  display: flex;
  align-items: center;
}

.sub-consent .consent-checkbox:hover {
  background: transparent;
}

.sub-consent .checkmark {
  width: 14px;
  height: 14px;
  margin-right: 8px;
}

.sub-consent .consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 3px;
  width: 3px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sub-consent .consent-text {
  font-size: 12px;
  color: #555;
}

.consent-description {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
}

.consent-description p {
  margin: 0 0 8px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.consent-description p:last-child {
  margin-bottom: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .consent-section {
    margin-top: 15px;
    padding: 20px;
  }
  
  .consent-title {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .consent-group-title {
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 15px;
  }
  
  .consent-checkbox {
    padding: 12px 15px;
  }
  
  .consent-text {
    font-size: 13px;
  }
  
  .consent-content {
    padding: 15px;
  }
  
  .consent-content p {
    font-size: 12px;
  }
  
  .sub-consent {
    padding: 10px 12px;
    margin: 12px 0;
  }
  
  .sub-consent .consent-text {
    font-size: 12px;
  }
  
  .sub-consent-row {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .consent-section {
    padding: 15px;
  }
  
  .consent-title {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  .consent-group {
    margin-bottom: 20px;
  }
  
  
  .consent-checkbox {
    padding: 10px 12px;
  }
  
  .checkmark {
    width: 18px;
    height: 18px;
    margin-right: 10px;
  }
  
  .consent-text {
    font-size: 12px;
  }
  
  .consent-content {
    padding: 12px;
  }
  
  .consent-content p {
    font-size: 11px;
    line-height: 1.4;
  }
  
  .sub-consent {
    padding: 8px 10px;
    margin: 10px 0;
  }
  
  .sub-consent .checkmark {
    width: 14px;
    height: 14px;
    margin-right: 6px;
  }
  
  .sub-consent .consent-text {
    font-size: 11px;
  }
  
  .sub-consent-row {
    padding: 0 10px;
  }
}

/* 전화번호 입력 필드 스타일 */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-input {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.phone-separator {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  flex-shrink: 0;
}

.phone-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.phone-input.border-red-500 {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

.consent-page-container {
  margin: 40px auto;
  padding: 20px;
}

.personal-info-consent-text-content {
  max-height: 800px;
  overflow-y: auto;
  border: 1px solid #e1e5e9;
  padding: 15px;
  background: #f9f9f9;
}

.personal-info-consent-text-content p {
  margin: 0 0 8px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.personal-info-consent-text-content p:last-child {
  margin-bottom: 0;
}

.personal-info-consent-page-container {
  height: 100%;
  margin: 40px auto;
  padding: 20px;
}

.personal-info-consent-page-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.personal-info-consent-page-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.personal-info-consent-page-subtitle {
  font-size: 16px;
  color: #666;
}

@media (max-width: 768px) {
  .personal-info-consent-page-container {
    margin: 20px;
    padding: 16px;
  }
  
  .personal-info-consent-page-title {
    font-size: 24px;
  }
}