/**
 * File: hc-login-form.css
 * Location: /hc-login-pro/assets/css/hc-login-form.css
 *
 * HC Login Pro - Login Form CSS
 * @package HC_Login_Pro
 */

/* 로그인 페이지 기본 스타일 */
.hc-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    color-scheme: light only; /* 강제 라이트모드 */
}

/* 배경 타입별 스타일 - 모두 흰색으로 통일 */
.hc-login-page.gradient-bg,
.hc-login-page.solid-bg,
.hc-login-page.image-bg {
    background: #ffffff;
}

.hc-login-page.image-bg::before {
    display: none;
}

/* 컨테이너 스타일 */
.hc-login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.hc-login-form-wrapper {
    background: #ffffff !important; /* 강제 흰색 배경 */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    position: relative;
    border: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    color: #333 !important; /* 강제 검정색 텍스트 */
}

/* 로고 스타일 */
.hc-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.hc-logo-default {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 24px;
}

.hc-logo-icon {
    width: 48px;
    height: 48px;
    background: #333333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.hc-logo-text {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

.hc-logo-image {
    max-height: 48px;
    width: auto;
}

.hc-logo-subtitle {
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

/* 페이지 헤더 */
.hc-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.hc-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.hc-page-description {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 로그인 폼 스타일 */
.hc-login-form {
    margin: 0;
}

.hc-form-group {
    margin-bottom: 20px;
}

.hc-form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-label-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #667eea;
}

.hc-input-wrapper {
    position: relative;
}

.hc-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f8f8;
    color: #333;
    box-sizing: border-box;
}

.hc-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hc-form-input:invalid {
    border-color: #ef4444;
}

/* 비밀번호 토글 버튼 */
.hc-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    user-select: none;
}

.hc-password-toggle:hover {
    color: #667eea;
}

/* 체크박스 스타일 */
.hc-checkbox-group {
    margin-bottom: 25px;
}

.hc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.hc-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.hc-checkbox:checked {
    background: #667eea;
    border-color: #667eea;
}

.hc-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.hc-checkbox-text {
    line-height: 1.4;
    color: #333;
}

/* 버튼 스타일 */
.hc-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.hc-btn-primary {
    background: #28a745;
    color: white !important;
}

.hc-btn-primary:hover {
    background: #218838;
    color: white !important;
    transform: none;
    box-shadow: none;
}

.hc-btn-primary:active {
    transform: translateY(0);
}

.hc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 링크 스타일 */
.hc-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hc-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.hc-link-primary {
    color: #667eea;
    font-weight: 600;
}

/* 텍스트 중앙 정렬 */
.hc-text-center {
    text-align: center;
}

/* 소셜 로그인 */
.hc-social-login {
    margin-top: 30px;
}

.hc-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

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

.hc-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.hc-social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hc-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
}

.hc-social-btn:hover {
    border-color: #667eea;
    background: #f8f8f8;
}

.hc-social-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
}

.hc-google-btn .hc-social-icon {
    background: #4285f4;
}

.hc-kakao-btn .hc-social-icon {
    background: #fee500;
    color: #000;
}

.hc-naver-btn .hc-social-icon {
    background: #03c75a;
}

.hc-social-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Remember Me & Forgot Password */
.hc-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.hc-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-forgot-password {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.hc-forgot-password:hover {
    color: #764ba2;
}

/* 메시지 스타일 */
.hc-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 14px;
    display: none;
}

.hc-error-message p {
    margin: 0;
}

.hc-success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #16a34a;
    font-size: 14px;
    display: none;
}

.hc-success-message p {
    margin: 0;
}

/* 로딩 오버레이 */
.hc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
    display: none;
}

.hc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 호버 효과 */
.hc-form-input:hover {
    border-color: #d1d5db;
}

.hc-btn:hover {
    transform: translateY(-2px);
}

.hc-social-btn:hover {
    transform: translateY(-1px);
}

/* 포커스 효과 */
.hc-form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hc-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.hc-btn:active {
    transform: translateY(0);
}

.hc-social-btn:active {
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .hc-login-page {
        padding: 16px;
    }
    
    .hc-login-form-wrapper {
        padding: 30px 20px;
    }
    
    .hc-logo-text {
        font-size: 20px;
    }
    
    .hc-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hc-page-title {
        font-size: 24px;
    }
    
    .hc-page-description {
        font-size: 14px;
    }
    
    .hc-form-input {
        font-size: 16px;
    }
    
    .hc-btn {
        font-size: 16px;
    }
    
    .hc-social-btn {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .hc-login-form-wrapper {
        padding: 20px;
    }
    
    .hc-social-buttons {
        gap: 8px;
    }
    
    .hc-social-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 접근성 */
.hc-form-input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.hc-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.hc-social-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 고대비 모드 */
@media (prefers-contrast: high) {
    .hc-form-input {
        border-width: 3px;
    }
    
    .hc-btn {
        border: 2px solid currentColor;
    }
}

/* 다크 모드 비활성화 - 항상 밝은 테마 사용 */

/* 테마 통합 */
.ast-container .hc-login-container {
    margin: 0 auto;
}

body.page-template-hc-login {
    margin: 0;
    padding: 0;
}

.hc-login-fullpage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

/* 이미 로그인된 사용자 메시지 */
.hc-already-logged-in {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hc-already-logged-in a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.hc-already-logged-in a:hover {
    text-decoration: underline;
}