/* feature0_auth_signup: 회원가입 마법사 전용 스타일 (auth_login.css 위에 적층) */

.auth-wrap-wide { max-width: 540px; }

/* 회원 유형 탭 (Phase A.5) */
.signup-account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
}
.signup-account-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.signup-account-tab:hover { background: #f3f4f6; }
.signup-account-tab.active {
    background: #eef2ff;
    border-color: #6366f1;
}
.signup-account-tab-icon { font-size: 24px; margin-bottom: 2px; }
.signup-account-tab-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}
.signup-account-tab.active .signup-account-tab-title { color: #4f46e5; }
.signup-account-tab-desc {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.3;
}

/* 사업자 검색 결과 (이용자 가입 Step 3) */
.signup-biz-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}
.signup-biz-results:empty { display: none; }
.signup-biz-card {
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}
.signup-biz-card:hover { background: #f9fafb; }
.signup-biz-card.selected {
    background: #eef2ff;
    border-color: #6366f1;
}
.signup-biz-card-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}
.signup-biz-card-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.signup-biz-card-meta span::before { content: "·"; margin-right: 4px; color: #d1d5db; }
.signup-biz-card-meta span:first-child::before { content: ""; margin: 0; }

.signup-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #111827;
    background: #f9fafb;
    font-family: inherit;
    resize: vertical;
}
.signup-form textarea:focus {
    border-color: #6366f1;
    background: #fff;
    outline: none;
}

/* 단계 인디케이터 */
.signup-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    gap: 8px;
    counter-reset: step;
}
.signup-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9ca3af;
    transition: background .2s, color .2s;
}
.signup-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #d1d5db;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.signup-steps li.active {
    background: #eef2ff;
    color: #4f46e5;
}
.signup-steps li.active span { background: #6366f1; }
.signup-steps li.done {
    background: #d1fae5;
    color: #059669;
}
.signup-steps li.done span { background: #10b981; }

/* 단계 패널 */
.signup-step { animation: fadeIn .2s ease-out; }
.signup-step.hidden { display: none; }

/* 모든 요소에 적용되는 hidden 유틸리티 (form/form-group 등) */
.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.signup-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.signup-step-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 20px;
}

/* 약관 동의 */
.signup-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.signup-consent:hover { background: #f9fafb; }
.signup-consent input[type="checkbox"] {
    width: 18px; height: 18px;
    margin: 2px 0 0;
    accent-color: #6366f1;
    cursor: pointer;
}
.signup-consent-text {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}
.signup-consent-required {
    display: inline-block;
    margin-right: 4px;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.75rem;
}
.signup-consent-optional {
    display: inline-block;
    margin-right: 4px;
    color: #6b7280;
    font-size: 0.75rem;
}
.signup-consent-view {
    margin-left: 6px;
    color: #6366f1;
    font-size: 0.8125rem;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}
.signup-consent-all {
    background: #f9fafb;
    border-width: 2px;
    margin-bottom: 14px;
}
.signup-consent-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 14px 0 12px;
}
.signup-consent-list { display: block; }
.signup-loading {
    text-align: center;
    color: #9ca3af;
    padding: 24px;
    font-size: 0.875rem;
}

/* 폼 (auth-form 기반에 적층) */
.signup-form .form-group { margin-bottom: 14px; }
.signup-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #111827;
    background: #f9fafb;
    cursor: pointer;
}
.signup-form select:focus {
    border-color: #6366f1;
    background: #fff;
    outline: none;
}
.signup-req { color: #dc2626; }

.signup-inline {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.signup-inline input { flex: 1; }

.signup-hint {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    min-height: 16px;
}
.signup-hint.is-error { color: #dc2626; }
.signup-hint.is-ok { color: #059669; }
.signup-hint-muted { color: #9ca3af; font-style: italic; }

.signup-hint-pwd { display: flex; align-items: center; gap: 6px; }
.signup-pwd-meter {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.signup-pwd-meter-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: width .2s, background .2s;
}
.signup-pwd-meter-fill.medium { background: #f59e0b; }
.signup-pwd-meter-fill.strong { background: #10b981; }

/* 부업종 체크박스 */
.signup-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.signup-checks label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all .15s;
}
.signup-checks label:has(input:checked) {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
}
.signup-checks input[type="checkbox"] { display: none; }

/* 액션 버튼 */
.signup-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.signup-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.signup-btn-primary {
    background: #6366f1;
    color: #fff;
    flex: 1;
}
.signup-btn-primary:hover:not(:disabled) { background: #4f46e5; }
.signup-btn-primary:disabled { background: #c7d2fe; cursor: not-allowed; }
.signup-btn-ghost {
    background: #f3f4f6;
    color: #374151;
}
.signup-btn-ghost:hover { background: #e5e7eb; }
.signup-btn-mini {
    padding: 0 14px;
    font-size: 0.8125rem;
    background: #6366f1;
    color: #fff;
    white-space: nowrap;
    min-width: 84px;
}
.signup-btn-mini:hover:not(:disabled) { background: #4f46e5; }
.signup-btn-mini:disabled { background: #c7d2fe; cursor: not-allowed; }
.signup-link {
    margin-top: 6px;
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.8125rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.signup-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.8125rem;
    display: none;
}
.signup-error.visible { display: block; }

/* Step 4 완료 */
.signup-done {
    text-align: center;
    padding: 30px 0;
}
.signup-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}
.signup-done h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #111827;
}
.signup-done p { color: #6b7280; }

/* 약관 모달 */
.signup-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.signup-modal.hidden { display: none; }
.signup-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.signup-modal-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: min(560px, 92vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.signup-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.signup-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #111827;
}
.signup-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.signup-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.7;
    white-space: pre-wrap;
}
.signup-modal-body h2 { font-size: 1rem; margin: 16px 0 8px; }
.signup-modal-body h3 { font-size: 0.9375rem; margin: 14px 0 6px; }
.signup-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}
