/* ==================== 회원가입 페이지 전용 스타일 ==================== */

/* 회원가입 컨테이너 */
.signup-container {
    display: flex;
    min-height: 100vh;
    animation: fadeIn 0.6s ease;
}

/* 왼쪽 브랜딩 영역 (로그인과 유사하지만 회원가입 특화) */
.signup-left {
    flex: 1.2;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

/* 회원가입 혜택 섹션 */
.signup-benefits {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.benefit-item i {
    font-size: 1.5rem;
    color: #FCD34D;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.benefit-item p {
    font-size: 0.85rem;
    opacity: 0.9;
    color: white;
    margin: 0;
}

/* 회원가입 안내 메시지 */
.signup-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.2rem;
    color: #10B981;
    flex-shrink: 0;
}

.info-item span {
    color: white;
    font-weight: 500;
}

/* 오른쪽 폼 영역 */
.signup-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    padding: 2rem;
    overflow-y: auto;
}

.signup-form-wrapper {
    width: 100%;
    max-width: 520px;
    animation: slideInRight 0.8s ease;
}

/* 진행 표시기 */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all var(--transition-base);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.progress-step span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.progress-step.active span {
    color: var(--primary-color);
}

.progress-step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 1.2rem;
}

/* 스텝 헤더 */
.step-header {
    margin-bottom: 2rem;
}

.step-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-header h4 i {
    color: var(--primary-color);
}

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

/* 폼 스텝 */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

/* 폼 행 (2열 레이아웃) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* 입력 필드 도움말 */
.input-help {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 검증 규칙 표시 */
.validation-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.validation-rules .rule {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.validation-rules .rule i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.validation-rules .rule.valid {
    color: var(--success-color);
}

.validation-rules .rule.valid i {
    color: var(--success-color);
}

.validation-rules .rule.invalid {
    color: var(--error-color);
}

.validation-rules .rule.invalid i::before {
    content: "\F626"; /* bi-x-circle */
}

/* 비밀번호 관련 */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

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

.password-strength-meter {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.strength-bar.weak {
    width: 33%;
    background: var(--error-color);
}

.strength-bar.medium {
    width: 66%;
    background: var(--warning-color);
}

.strength-bar.strong {
    width: 100%;
    background: var(--success-color);
}

.password-match {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.password-match.match {
    color: var(--success-color);
}

.password-match.no-match {
    color: var(--error-color);
}

/* 문자 카운터 */
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: var(--warning-color);
}

.char-counter.danger {
    color: var(--error-color);
}

/* 가용성 체크 */
.availability-check {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.availability-check.available {
    color: var(--success-color);
}

.availability-check.unavailable {
    color: var(--error-color);
}

.availability-check.checking {
    color: var(--text-muted);
}

/* 필수 표시 */
.required {
    color: var(--error-color);
    font-weight: normal;
}

/* 네비게이션 버튼 */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    gap: 1rem;
}

.btn-prev,
.btn-next {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-prev {
    background: var(--background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-prev:hover {
    background: var(--border-color);
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background: var(--primary-dark);
    transform: translateX(2px);
}

.btn-submit {
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--gradient-brand);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 회원가입 푸터 */
.signup-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.login-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.login-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .signup-container {
        flex-direction: column;
    }
    
    .signup-left {
        display: none;
    }
    
    .signup-right {
        flex: 1;
        padding: 1.5rem;
    }
    
    .progress-indicator {
        margin-bottom: 2rem;
    }
    
    .progress-step span {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .validation-rules {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .signup-form-wrapper {
        padding: 0;
    }
    
    .progress-indicator {
        transform: scale(0.85);
        margin-bottom: 1.5rem;
    }
    
    .step-header h4 {
        font-size: 1.1rem;
    }
    
    .form-input {
        font-size: 16px; /* iOS 줌 방지 */
    }
}

/* 애니메이션 */
@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide-right {
    animation: slideFromRight 0.3s ease;
}

.slide-left {
    animation: slideFromLeft 0.3s ease;
}