@charset "utf-8";

/* Theme Custom CSS - 현대적인 로그인 페이지 */

/* 전체 레이아웃 */
html, body { 
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa;
}

/* 로그인 페이지 전체 래퍼 */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 로그인 컨테이너 */
.login-container {
    width: 100%;
    max-width: 420px;
}

/* 로그인 박스 */
.login-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* 로그인 헤더 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 소셜 로그인 섹션 */
.social-login-section {
    margin-bottom: 30px;
}

.social-login-btn {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-login-btn.kakao {
    background: #FEE500;
    border-color: #FEE500;
    color: #000000;
}

.social-login-btn.kakao:hover {
    background: #fdd835;
}

.social-login-btn.naver {
    background: #03C75A;
    border-color: #03C75A;
    color: #ffffff;
}

.social-login-btn.naver:hover {
    background: #02b351;
}

.social-login-btn.google {
    background: #ffffff;
    border-color: #dadce0;
    color: #3c4043;
}

.social-login-btn.google:hover {
    background: #f8f9fa;
}

/* 구분선 */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider span {
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.social-login-btn.naver {
    background: #03C75A;
    border-color: #03C75A;
    color: #ffffff;
}

.social-login-btn.naver:hover {
    background: #02a84d;
}

.social-login-btn.google {
    background: #ffffff;
    border-color: #dadce0;
    color: #3c4043;
}

.social-login-btn.google:hover {
    background: #f8f9fa;
}

/* 구분선 */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 14px;
}

/* 로그인 폼 */
.login-form .form-floating {
    margin-bottom: 15px;
}

.login-form .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.login-form .form-floating label {
    color: #999;
    font-size: 14px;
}

/* 로그인 옵션 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-options .form-check-label {
    font-size: 14px;
    color: #666;
}

.forgot-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 로그인 버튼 */
.btn-login {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.3);
}

/* 로그인 푸터 */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.login-footer p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.btn-register {
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 회원가입, 인증 등 다른 페이지 스타일 */
.register, .member_cert_refresh, .mb_confirm, .password {
    width: 100%; 
    max-width: 600px; 
    padding: 40px; 
    margin: 50px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 폼 정보 메시지 */
.form-info {
    display: block;
    margin: 5px 0 0;
    font-size: 12px;
    color: #ff0000;
    letter-spacing: -0.1em;
}

/* 반응형 디자인 */
@media (max-width: 575px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .social-login-btn {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    #captcha_audio {
        display: none !important;
    }
}

/* 기존 소셜 로그인 스킨 숨김 */
#sns_login {
    display: none;
}

/* ===== 회원가입 페이지 스타일 ===== */

/* 회원가입 래퍼 */
.register-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 회원가입 컨테이너 */
.register-container {
    width: 100%;
    max-width: 680px;
}

/* 회원가입 박스 */
.register-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* 회원가입 헤더 */
.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.register-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.register-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 진행 단계 */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 60px;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.progress-steps .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(100% + 30px);
    width: 60px;
    height: 2px;
    background: #e0e0e0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-number.done {
    background: #28a745;
    color: white;
}

.step-number.active {
    background: #667eea;
    color: white;
}

.progress-steps .step span {
    font-size: 14px;
    color: #666;
}

/* 폼 섹션 */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* 본인인증 버튼 */
.cert-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.cert-btn {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-btn i {
    font-size: 24px;
    color: #667eea;
}

.cert-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.cert-btn.kakao {
    border-color: #FEE500;
    background: #fffbf0;
}

.cert-btn.kakao i {
    color: #000;
}

.cert-notice {
    font-size: 13px;
    color: #ff0000;
    margin: 0;
}

/* 인증 완료 표시 */
.cert-complete {
    background: #d4f5d4;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #28a745;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.cert-complete i {
    font-size: 20px;
}

/* 필수 표시 */
.required {
    color: #ff0000;
}

/* 폼 텍스트 */
.form-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.form-text.text-info {
    color: #17a2b8;
}

/* 주소 그룹 */
.address-group .form-label {
    font-weight: 500;
    margin-bottom: 10px;
}

/* 현재 이미지 */
.current-image {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.current-image img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

/* 설정 그룹 */
.setting-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* 캡차 박스 */
.captcha-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* 제출 섹션 */
.submit-section {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-footer-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.register-footer-text a:hover {
    text-decoration: underline;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .register-box {
        padding: 30px 20px;
    }
    
    .register-title {
        font-size: 28px;
    }
    
    .progress-steps {
        gap: 30px;
    }
    
    .progress-steps .step:not(:last-child)::after {
        width: 30px;
        left: calc(100% + 15px);
    }
    
    .cert-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        gap: 20px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .progress-steps .step span {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* ===== 약관동의 페이지 추가 스타일 ===== */

/* 소셜 회원가입 섹션 */
.social-register-section {
    text-align: center;
    margin-bottom: 30px;
}

.social-register-section h5 {
    color: #333;
    margin-bottom: 20px;
}

/* 전체 동의 섹션 */
.all-agree-section {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e8ff;
    margin-bottom: 20px;
}

.all-agree-section .form-check {
    margin: 0;
}

.all-agree-section .form-check-label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.all-agree-section .form-check-input:checked + .form-check-label {
    color: #667eea;
}

/* 약관 아이템 */
.terms-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.terms-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.terms-item.optional {
    border-style: dashed;
    border-color: #ffc107;
    background: #fffdf0;
}

/* 약관 헤더 */
.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.terms-header .form-check {
    flex: 1;
    margin: 0;
}

.terms-header .form-check-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.terms-header .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
}

/* 약관 내용 */
.terms-content {
    margin-top: 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.terms-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #495057;
}

.terms-text::-webkit-scrollbar {
    width: 6px;
}

.terms-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.terms-text::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.terms-text::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 약관 요약 */
.terms-summary {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.terms-summary small {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 체크박스 스타일 개선 */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-check-input:indeterminate {
    background-color: #ffc107;
    border-color: #ffc107;
}

/* 안내 메시지 */
.alert-info {
    background-color: #e7f3ff;
    border-color: #bee5eb;
    color: #0c5460;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.alert-info strong {
    color: #667eea;
}

/* 제출 버튼 개선 */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-submit:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 반응형 약관 페이지 */
@media (max-width: 768px) {
    .terms-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .terms-header .btn-sm {
        align-self: flex-end;
    }
    
    .all-agree-section {
        padding: 15px;
    }
    
    .terms-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .terms-text {
        padding: 15px;
        font-size: 12px;
    }
    
    .terms-header .form-check-label {
        font-size: 14px;
    }
    
    .all-agree-section .form-check-label {
        font-size: 15px;
    }
}

/* Captcha 스타일 */
#captcha {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

#captcha legend {
    display: none;
}

#captcha_img {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

#captcha_key {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 16px;
}

#captcha_reload {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#captcha_reload:hover {
    background: #5a6268;
}

#captcha_reload span::before {
    content: "↻ ";
}

.captcha-wrapper {
    margin-top: 20px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}