/* 회원가입 및 로그인 페이지 전용 스타일 */

/* 인증 페이지 컨테이너 */
.auth-container {
    margin-top: 68px;
    min-height: calc(100vh - 68px);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.6s ease-out;
}

.login-wrapper {
    max-width: 420px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 헤더 */
.auth-header {
    background: linear-gradient(135deg, var(--main-blue) 0%, #0049c7 100%);
    color: var(--white);
    padding: 20px 10px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 16px;
}

.auth-logo svg {
    color: var(--white);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 폼 컨테이너 */
.auth-form-container {
    padding: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.login-form {
    gap: 0;
}

/* 폼 섹션 */
.form-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--main-blue);
    display: inline-block;
}

/* 폼 그룹 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

/* 입력 필드 */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: var(--white);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-blue);
    box-shadow: 0 0 0 3px rgba(0, 92, 227, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

/* ==========================================
   7. 체크박스 라벨
   ========================================== */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

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

.checkbox-label .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
}

.checkbox-text {
    color: var(--black);
}


/* 캡차 컨테이너 */
.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
}

#captchaText {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: var(--black);
    letter-spacing: 2px;
    text-decoration: line-through;
    flex: 1;
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--main-blue);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.captcha-refresh:hover {
    background: rgba(0, 92, 227, 0.1);
}

/* 텍스트 영역 스타일 */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* 비활성화된 입력 필드 */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-02);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: var(--black);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e1e5e9;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--main-blue) 0%, #0049c7 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0049c7 0%, #003a9e 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-02);
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--main-blue);
    color: var(--main-blue);
}

/* 입력 그룹 */
.input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-group input {
    flex: 1;
}

.btn-verify {
    background: var(--main-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-verify:hover {
    background: #0049c7;
}

.btn-verify:disabled {
    background: var(--gray-01);
    color: var(--gray-02);
    cursor: not-allowed;
}

.verify-timer {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* 비밀번호 입력 그룹 */
.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-02);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: var(--black);
    background-color: #f3f4f6;
}

/* 비밀번호 강도 */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

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

.strength-fill.weak {
    background-color: #e74c3c;
    width: 33%;
}

.strength-fill.medium {
    background-color: #f39c12;
    width: 66%;
}

.strength-fill.strong {
    background-color: #27ae60;
    width: 100%;
}

.strength-text {
    font-size: 12px;
    color: var(--gray-02);
}

/* 라디오 그룹 */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--main-blue);
}

.radio-label {
    color: var(--black);
    font-weight: 400;
}

/* 약관 동의 */
.terms-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-item:hover {
    background-color: #f8f9fa;
    border-color: var(--main-blue);
}

.terms-item:first-child {
    background-color: #f8f9fa;
    border-color: var(--main-blue);
    font-weight: 600;
}

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

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.terms-item input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--main-blue);
    border-color: var(--main-blue);
}

.terms-item input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
}

.terms-text {
    flex: 1;
    font-size: 14px;
    color: var(--black);
}

.required {
    color: #e74c3c;
    font-weight: 500;
}

.optional {
    color: var(--gray-02);
}

.terms-link {
    background: none;
    border: none;
    color: var(--main-blue);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.terms-link:hover {
    color: #0049c7;
}

/* 로그인 옵션 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 8px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.remember-me input[type="checkbox"] {
    display: none;
}
.remember-me .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: var(--white);
}

.remember-me input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #667eea;
    border-color: #667eea;
}

.remember-me input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.remember-me span:last-child {
    color: var(--black);
    user-select: none;
}
.forgot-password {
    color: var(--main-blue);
    font-size: 14px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 폼 액션 버튼 */
.form-actions {
    margin-top: 16px;
}

.btn-signup,
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--main-blue) 0%, #0049c7 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-signup:hover,
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 92, 227, 0.3);
}

.btn-signup:disabled {
    background: var(--gray-01);
    color: var(--gray-02);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* 소셜 로그인 */
.social-login {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e1e5e9;
}

.divider span {
    background-color: var(--white);
    padding: 0 16px;
    color: var(--gray-02);
    font-size: 14px;
    position: relative;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--main-blue);
    background-color: #f8f9fa;
}

.google-btn:hover {
    border-color: #4285F4;
}

.kakao-btn:hover {
    border-color: #FEE500;
    background-color: #FEE500;
    color: #000;
}

.naver-btn:hover {
    border-color: #03C75A;
}

/* 인증 푸터 */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.auth-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-02);
}

.auth-footer a {
    color: var(--main-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 폼 메시지 */
.form-message {
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 4px;
    min-height: 0;
    line-height: 1.3;
}

.form-message.success {
    color: #27ae60;
    display: block;
}

.form-message.error {
    color: #e74c3c;
    display: block;
}

.form-message.info {
    color: var(--main-blue);
    display: block;
}

/* 빈 메시지는 공간을 차지하지 않음 */
.form-message:empty {
    display: none;
    margin: 0;
}

/* 모달 (기존 스타일 확장) */
.modal-description {
    color: var(--gray-02);
    font-size: 14px;
    line-height: 1.5;
    margin: 16px 0;
}

/* 로딩 상태 */
.btn-signup.loading,
.btn-login.loading {
    pointer-events: none;
}

.btn-signup.loading .btn-text,
.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-signup.loading::after,
.btn-login.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 반응형 디자인 */
/* 모바일 버전 임시 비활성화 - 나중에 768px로 복구 */
@media (max-width: 0px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-wrapper {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-form-container {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .login-options {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
    }
    
         .input-group {
         flex-direction: column;
         gap: 8px;
     }
     
     .input-group input {
         width: 100%;
     }
     
     .btn-verify {
         width: 100%;
     }
}

@media (max-width: 480px) {
    .auth-header {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-form-container {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
    }
    
    .btn-signup,
    .btn-login {
        padding: 14px;
        font-size: 14px;
    }
}

/* 테스트 계정 안내 */
.test-account-info {
    margin: 20px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid var(--main-blue);
}

.test-account-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--main-blue);
    margin-bottom: 12px;
    text-align: center;
}

.test-account-item {
    margin-bottom: 8px;
}

.test-account-item:last-child {
    margin-bottom: 0;
}

.test-login-btn {
    width: 100%;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-03);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.test-login-btn:hover {
    background-color: var(--main-blue);
    color: white;
    border-color: var(--main-blue);
    transform: translateY(-1px);
} 