/**
 * File: hc-common.css
 * Location: /hc-login-pro/assets/css/hc-common.css
 *
 * HC Login Pro CSS - Common Stylesheet
 * @package HC_Login_Pro
 */

/* HC Login Common CSS */
/* 공통 스타일 - 모든 폼에서 공유하는 기본 스타일 */

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

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

.hc-logo-default:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.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;
    flex-shrink: 0;
}

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

.hc-logo-image {
    max-height: 60px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
}

/* 로고 이미지 컨테이너 */
.hc-login-logo a {
    display: block !important;
    text-decoration: none !important;
    text-align: center !important;
}

.hc-login-logo a:hover {
    text-decoration: none !important;
}

.hc-logo-image:hover {
    transform: scale(1.02);
}

.hc-logo-subtitle {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.8;
}

/* 로고 컨테이너 */
.hc-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 로고 반응형 */
@media (max-width: 480px) {
    .hc-logo-image {
        max-height: 48px;
        max-width: 160px;
    }
    
    .hc-logo-text {
        font-size: 20px;
    }
    
    .hc-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 기본 폼 요소 스타일 */
.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-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;
}

.hc-btn-primary:hover {
    background: #218838;
    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-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 #333333;
    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-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-form-input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.hc-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: #ffffff;
    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;
}