/* 인증 모달 스타일 */

/* SNS 로그인 섹션 */
.sns-login-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.sns-login-section h6 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 구분선 */
.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 비밀번호 표시/숨김 버튼 */
.input-group .btn-outline-secondary {
    border-left: none;
}

.input-group .form-control:focus {
    border-right: none;
    box-shadow: none;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: none;
}

/* 비밀번호 강도 표시 */
.password-strength .progress {
    background-color: #e9ecef;
}

.password-strength .progress-bar {
    transition: all 0.3s ease;
}

.password-strength.weak .progress-bar {
    background-color: #dc3545;
    width: 25%;
}

.password-strength.fair .progress-bar {
    background-color: #ffc107;
    width: 50%;
}

.password-strength.good .progress-bar {
    background-color: #17a2b8;
    width: 75%;
}

.password-strength.strong .progress-bar {
    background-color: #28a745;
    width: 100%;
}

/* 비밀번호 일치 확인 */
.password-match {
    color: #28a745;
}

.password-mismatch {
    color: #dc3545;
}

/* 휴대폰 번호 입력 */
#registerPhone {
    font-family: 'Courier New', monospace;
}

/* 인증번호 입력 */
#verificationCode {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
}

/* 약관 동의 체크박스 */
.form-check-label a {
    color: #007bff;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* 회원가입 버튼 비활성화 */
#registerSubmitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* SNS 버튼 스타일 */
.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-outline-success:hover {
    background-color: #f7e600;
    border-color: #f7e600;
    color: #3c1e1e;
}

.btn-outline-dark:hover {
    background-color: #343a40;
    border-color: #343a40;
    color: white;
}

.btn-outline-info:hover {
    background-color: #03c75a;
    border-color: #03c75a;
    color: white;
}

/* 모달 크기 조정 */
.modal-lg {
    max-width: 600px;
}

/* 반응형 디자인 */
/* @media (max-width: 768px) {
    .sns-login-section .row .col-6 {
        margin-bottom: 10px;
    }
    
    .modal-lg {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .divider span {
        font-size: 0.8rem;
        padding: 0 10px;
    }
} */

/* 애니메이션 효과 */
.sns-login-section .btn {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.sns-login-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 로딩 상태 */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 유효성 검사 스타일 */
.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* 회원가입 폼 스타일 */
.register-form-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.register-form-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

/* 필수 필드 표시 */
.required-field::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* 툴팁 스타일 */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-text.help-text {
    color: #17a2b8;
}

.form-text.error-text {
    color: #dc3545;
}

/* 인증번호 타이머 스타일 */
.verification-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #dc3545;
}

.verification-timer.expired {
    color: #6c757d;
}

/* 성공/실패 메시지 스타일 */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* 약관 모달 스타일 */
.terms-content, .privacy-content {
    line-height: 1.6;
    color: #495057;
}

.terms-content h6, .privacy-content h6 {
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.terms-content p, .privacy-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* 프로필 업데이트 폼 */
.profile-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* 사용자 설정 스타일 */
.user-settings {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 500;
    color: #495057;
}

.setting-control {
    min-width: 120px;
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .sns-login-section {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .divider::before {
        background: #4a5568;
    }
    
    .divider span {
        background: var(--card-bg);
        color: #a0aec0;
    }
    
    .password-strength .progress {
        background-color: #4a5568;
    }
    
    .register-form-section {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .register-form-section h6 {
        color: #e2e8f0;
        border-bottom-color: #3182ce;
    }
    
    .profile-form {
        background: #2d3748;
    }
    
    .profile-form label {
        color: #e2e8f0;
    }
    
    .user-settings {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .setting-item {
        border-bottom-color: #4a5568;
    }
    
    .setting-label {
        color: #e2e8f0;
    }
    
    .terms-content, .privacy-content {
        color: #e2e8f0;
    }
    
    .terms-content h6, .privacy-content h6 {
        color: #63b3ed;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .sns-login-section .btn {
        transition: none;
    }
    
    .password-strength .progress-bar {
        transition: none;
    }
    
    .btn.loading::after {
        animation: none;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .alert {
        border-width: 2px;
    }
}

/* 인쇄 스타일 */
@media print {
    .modal {
        display: none !important;
    }
    
    .btn {
        display: none !important;
    }
}

/* 모달 푸터 스타일 */
.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.modal-footer .company-info-footer {
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

.modal-footer .company-info {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.5;
}

.modal-footer .company-info p {
    margin-bottom: 0.25rem;
}

.modal-footer .company-info strong {
    color: #495057;
}

.modal-footer .company-info .text-muted {
    color: #6c757d !important;
    font-size: 0.75rem;
}

.modal-footer .company-info a {
    color: #007bff;
    transition: color 0.3s ease;
    font-size: 0.75rem;
}

.modal-footer .company-info a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 다크 모드에서 모달 푸터 스타일 */
@media (prefers-color-scheme: dark) {
    .modal-footer {
        background: #2d3748;
        border-top-color: #4a5568;
    }
    
    .modal-footer .company-info {
        color: #a0aec0;
    }
    
    .modal-footer .company-info strong {
        color: #e2e8f0;
    }
    
    .modal-footer .company-info .text-muted {
        color: #718096 !important;
    }
    
    .modal-footer .company-info a {
        color: #63b3ed;
    }
    
    .modal-footer .company-info a:hover {
        color: #90cdf4;
    }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer .company-info {
        font-size: 0.75rem;
    }
    
    .modal-footer .company-info a {
        font-size: 0.7rem;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .modal-footer .company-info a:last-child {
        margin-bottom: 0;
    }
} 