/* ===== Register Page Styles ===== */

.register-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: stretch;
}

.register-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
}

/* Left Branding Panel */
.register-branding {
  flex: 0 0 420px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.register-branding::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.register-branding::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.branding-content {
  position: relative;
  z-index: 1;
}

.branding-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.branding-content > p {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.branding-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.branding-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

.branding-feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.branding-feature i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.branding-feature span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Right Form Panel */
.register-form-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 2rem;
  overflow-y: auto;
  background: var(--light-bg);
}

.register-form-inner {
  width: 100%;
  max-width: 560px;
  padding: 1rem 0;
}

/* Form Header */
.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-header a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

.form-header a:hover {
  text-decoration: underline;
}

/* Social Login Buttons */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: 'Noto Sans KR', sans-serif;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn.kakao {
  background: #fee500;
  color: #191919;
  box-shadow: 0 2px 8px rgba(254, 229, 0, 0.3);
}

.social-btn.kakao:hover {
  box-shadow: 0 4px 16px rgba(254, 229, 0, 0.4);
}

.social-btn.naver {
  background: #03c75a;
  color: white;
  box-shadow: 0 2px 8px rgba(3, 199, 90, 0.3);
}

.social-btn.naver:hover {
  box-shadow: 0 4px 16px rgba(3, 199, 90, 0.4);
}

.social-btn.google {
  background: white;
  color: #333;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.social-btn.google:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.step.active .step-circle {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step.completed .step-circle {
  background: #10b981;
  color: white;
}

.step span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.step.active span {
  color: var(--primary-color);
  font-weight: 700;
}

.step.completed span {
  color: #10b981;
}

.step-line {
  width: 60px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.5rem;
  margin-bottom: 1.75rem;
  transition: background 0.3s;
}

.step-line.active {
  background: var(--primary-color);
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-step h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* User Type Selection */
.user-type-select {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.type-card {
  cursor: pointer;
}

.type-card input[type="radio"] {
  display: none;
}

.type-card-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  background: white;
  transition: all 0.25s;
}

.type-card input:checked + .type-card-inner {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.03);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.type-card:hover .type-card-inner {
  border-color: #94b8f5;
  transform: translateY(-2px);
}

.type-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.type-icon.investor-icon {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  color: #f59e0b;
}

.type-info strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.type-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.type-check {
  margin-left: auto;
  font-size: 1.5rem;
  color: #e2e8f0;
  transition: all 0.2s;
}

.type-card input:checked + .type-card-inner .type-check {
  color: var(--primary-color);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.required-mark {
  color: #ef4444;
  font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Input with Button */
.input-with-btn {
  display: flex;
  gap: 0.5rem;
}

.input-with-btn input {
  flex: 1;
}

.btn-check,
.btn-verify {
  padding: 0 1.25rem;
  border: 1.5px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-check:hover,
.btn-verify:hover {
  background: var(--primary-color);
  color: white;
}

.btn-check:disabled,
.btn-verify:disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Input Wrapper (for password toggle) */
.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding-right: 3rem;
}

.toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color 0.2s;
}

.toggle-pw:hover {
  color: var(--text-primary);
}

/* Password Strength */
.pw-strength {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pw-bar {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.pw-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s;
}

.pw-bar-fill.weak {
  width: 33%;
  background: #ef4444;
}

.pw-bar-fill.medium {
  width: 66%;
  background: #f59e0b;
}

.pw-bar-fill.strong {
  width: 100%;
  background: #10b981;
}

.pw-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 50px;
}

/* Field Messages */
.field-msg {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  min-height: 1.2em;
  color: var(--text-secondary);
}

.field-msg.error {
  color: #ef4444;
}

.field-msg.success {
  color: #10b981;
}

.timer {
  color: var(--primary-color);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Character Count */
.char-count {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* Terms Section */
.terms-section {
  margin: 2rem 0 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.checkbox-label.all-agree {
  font-weight: 700;
  font-size: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

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

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.checkbox-label input:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
  opacity: 1;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.required-tag {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.8rem;
}

.optional-tag {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
}

.optional-badge {
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  vertical-align: middle;
}

.terms-link {
  margin-left: auto;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.terms-link:hover {
  color: var(--primary-color);
}

/* Form Actions */
.form-actions {
  margin-top: 2rem;
}

.form-actions.two-btn {
  display: flex;
  gap: 0.75rem;
}

.btn-next,
.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-next:disabled,
.btn-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-prev {
  padding: 1rem 1.5rem;
  background: white;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-prev:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-primary);
}

/* Verify Group Animation */
.verify-group {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 120px;
    margin-bottom: 1.25rem;
  }
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .register-branding {
    flex: 0 0 340px;
    padding: 2rem;
  }

  .branding-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .register-container {
    flex-direction: column;
  }

  .register-branding {
    flex: none;
    padding: 2.5rem 1.5rem;
  }

  .branding-features {
    display: none;
  }

  .branding-content h1 {
    font-size: 1.75rem;
  }

  .branding-content > p {
    margin-bottom: 0;
  }

  .register-form-wrapper {
    padding: 2rem 1.25rem;
  }

  .step-indicator {
    gap: 0;
  }

  .step-line {
    width: 40px;
  }

  .social-login {
    gap: 0.5rem;
  }

  .input-with-btn {
    flex-direction: column;
  }

  .btn-check,
  .btn-verify {
    padding: 0.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .register-form-wrapper {
    padding: 1.5rem 1rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .step span {
    font-size: 0.7rem;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* ===== 새 폼 요소 스타일 ===== */

/* 폼 셀렉트 */
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-primary);
  background: white;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 한 줄 4열 그리드 */
.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

/* 한 줄 3열 그리드 */
.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* 한 줄 2열 그리드 */
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* 단위 입력 (억원 등) */
.input-unit-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-unit-wrap:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-unit-wrap input {
  flex: 1;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.75rem 0.75rem !important;
}

.input-unit {
  padding: 0.75rem 0.85rem;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border-left: 1.5px solid var(--border-color);
}

/* 파일 업로드 버튼 */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border: 1.5px dashed var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s;
  background: #f8fafc;
}

.file-upload-label:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.04);
}

.file-upload-label i {
  font-size: 1.2rem;
}

/* 키워드 뱃지 입력 */
.keyword-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: white;
  min-height: 48px;
  cursor: text;
  transition: border-color 0.2s;
}

.keyword-input-wrap:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.keyword-input-wrap input {
  flex: 1;
  min-width: 120px;
  border: none !important;
  box-shadow: none !important;
  padding: 0.25rem 0.25rem !important;
  font-size: 0.9rem;
  outline: none;
}

.keyword-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.kw-remove {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.kw-remove:hover { opacity: 1; }

/* 반응형 */
@media (max-width: 600px) {
  .form-row-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row-3 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* 설립일 (date) / 나이 (number) 입력 디자인 */
input[type="date"],
input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-primary);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -moz-appearance: textfield;
}

input[type="date"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 날짜 아이콘 영역 */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
  filter: invert(30%) sepia(80%) saturate(400%) hue-rotate(200deg);
}

/* 숫자 스핀 버튼 제거 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* input-unit-wrap 내부 number는 별도 처리 */
.input-unit-wrap input[type="number"] {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.75rem 0.75rem !important;
}
