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

/* 모바일 최적화 - 최상단에 추가 */
* {
    box-sizing: border-box;
}

/* 모바일 반응형 기본 설정 */
@media screen and (max-width: 768px) {
    /* 전체 페이지 설정 */
    .hc-login-page,
    .hc-register-page,
    .hc-reset-page {
        padding: 20px 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* 컨테이너 설정 */
    .hc-login-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    /* 폼 래퍼 설정 */
    .hc-login-form-wrapper {
        width: 100% !important;
        margin: 20px 0 !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    /* iOS 자동 줌 방지 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* 모바일에서 상하 여백 추가 */
    .hc-login-page,
    .hc-register-page,
    .hc-reset-page {
        padding-top: env(safe-area-inset-top, 20px) !important;
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
    }
    
    /* 작은 화면에서 여백 조정 */
    @media screen and (max-height: 600px) {
        .hc-login-page,
        .hc-register-page,
        .hc-reset-page {
            padding-top: 10px !important;
            padding-bottom: 10px !important;
        }
        
        .hc-login-form-wrapper {
            margin: 10px 0 !important;
        }
    }
    
    /* 매우 작은 화면에서 여백 조정 */
    @media screen and (max-width: 360px) {
        .hc-login-container {
            padding: 0 15px !important;
        }
    }
    
    /* 극히 작은 화면에서 여백 조정 */
    @media screen and (max-width: 320px) {
        .hc-login-container {
            padding: 0 10px !important;
        }
    }
}

    /* 아이폰 X 이상 노치 대응 */
    @supports (padding: max(0px)) {
        .hc-login-page,
        .hc-register-page,
        .hc-reset-page {
            padding-left: max(20px, env(safe-area-inset-left)) !important;
            padding-right: max(20px, env(safe-area-inset-right)) !important;
        }
        
        .hc-login-container {
            padding-left: max(20px, env(safe-area-inset-left)) !important;
            padding-right: max(20px, env(safe-area-inset-right)) !important;
        }
    }

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

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

.hc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

/* 다크 모드 */
@media (prefers-color-scheme: dark) {
    .hc-form-input {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .hc-form-input:focus {
        border-color: #764ba2;
        box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
    }
    
    .hc-form-input.hc-error {
        border-color: #f87171;
        box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
    }
}

/* 테마 통합 */
.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;
}

/* 기본 배경 스타일 - 흰색 배경 (최우선 적용) */
.hc-login-page,
.hc-register-page,
.hc-reset-page {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

.hc-login-form-wrapper {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e0e0e0 !important;
}

.hc-login-container {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

/* 로고 아이콘 색상 */
.hc-logo-icon {
    background: #333333 !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* 버튼 색상 */
.hc-btn-primary {
    background: #28a745 !important;
    background-image: none !important;
    color: white !important;
}

/* 텍스트 색상 */
.hc-page-title {
    color: #333333 !important;
}

.hc-page-description {
    color: #666666 !important;
}

/* 모든 그라데이션 배경 제거 */
.hc-login-page,
.hc-register-page,
.hc-reset-page,
.hc-login-page *,
.hc-register-page *,
.hc-reset-page * {
    background-image: none !important;
}

/* 특정 요소들의 배경 강제 설정 */
.hc-login-page,
.hc-register-page,
.hc-reset-page {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.hc-login-form-wrapper,
.hc-register-form-wrapper,
.hc-reset-form-wrapper {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.hc-login-container,
.hc-register-container,
.hc-reset-container {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* 모든 페이지에서 파란색 배경 완전 제거 */
body .hc-login-page,
body .hc-register-page,
body .hc-reset-page {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

/* 모든 그라데이션 배경 강제 제거 */
body * {
    background-image: none !important;
}

/* 특정 클래스들의 배경 강제 설정 */
body .hc-login-page *,
body .hc-register-page *,
body .hc-reset-page * {
    background-image: none !important;
}

/* 페이지 전체 배경 강제 설정 */
body.page-template-hc-login,
body.page-id-hc-login,
body.page-id-hc-register,
body.page-id-hc-reset {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

.hc-login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* 모바일에서 컨테이너 최적화 */
@media (max-width: 480px) {
    .hc-login-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
}

.hc-login-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    position: relative;
    border: none;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hc-login-logo {
    text-align: center;
    margin-bottom: 15px;
}

.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;
    color: #333;
    text-decoration: none;
}

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

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

.hc-page-header {
    text-align: center;
    margin-bottom: 15px;
}

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

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

.hc-login-form,
.hc-register-form,
.hc-reset-form {
    width: 100%;
}

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

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

.hc-label-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    font-size: 12px;
    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;
    background: #f8f8f8;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 48px;
}

.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;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    user-select: none;
}

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

.hc-form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.hc-form-input.hc-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.hc-checkbox-group {
    margin-bottom: 25px;
}

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

.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 {
    flex: 1;
}

.hc-checkbox-text a {
    color: #667eea;
    text-decoration: none;
}

.hc-checkbox-text a:hover {
    text-decoration: underline;
}

.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    min-width: 44px;
    position: relative;
    overflow: hidden;
}

.hc-btn-primary {
    background: #28a745;
    color: white;
    width: 100%;
}

.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;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.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;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    flex: 1;
}

.hc-social-btn:hover {
    border-color: #667eea;
    background: #f8f8f8;
    transform: translateY(-1px);
}

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

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

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

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

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

.hc-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 14px;
    display: none;
}

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

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

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

.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;
}

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

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

.hc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.hc-notification.hc-show {
    transform: translateX(0);
}

.hc-notification.hc-success {
    border-left-color: #10b981;
}

.hc-notification.hc-error {
    border-left-color: #ef4444;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .hc-login-page,
    .hc-register-page,
    .hc-reset-page {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hc-login-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
    
    .hc-login-form-wrapper {
        padding: 20px 15px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}
    
    .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;
        padding: 12px 14px;
        min-height: 48px;
    }
    
    .hc-btn {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .hc-social-btn {
        padding: 12px;
        font-size: 14px;
        min-height: 48px;
    }
}

@media (max-width: 360px) {
    .hc-login-page,
    .hc-register-page,
    .hc-reset-page {
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hc-login-container {
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .hc-login-form-wrapper {
        padding: 16px 12px;
        border-radius: 6px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .hc-social-buttons {
        gap: 8px;
    }
    
    .hc-social-btn {
        padding: 10px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* 매우 작은 화면 최적화 */
@media (max-width: 320px) {
    .hc-login-page,
    .hc-register-page,
    .hc-reset-page {
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hc-login-container {
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .hc-login-form-wrapper {
        padding: 12px 10px;
        border-radius: 4px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .hc-form-input {
        font-size: 16px;
        padding: 10px 12px;
        min-height: 44px;
    }
    
    .hc-btn {
        padding: 10px 16px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .hc-logo-text {
        font-size: 18px;
    }
    
    .hc-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .hc-page-title {
        font-size: 20px;
    }
}

/* 접근성 개선 */
.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;
    }
}

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

/* 애니메이션 */
.hc-login-form-wrapper {
    animation: fadeIn 0.3s ease;
}

@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);
}

/* 아스트라 테마와의 통합 */
.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;
}

/* 회원가입 페이지 특별 스타일 */
.hc-register-page {
    /* 회원가입 페이지 전용 스타일 */
}

.hc-register-form {
    /* 회원가입 폼 전용 스타일 */
}

/* 회원가입 페이지에서 체크박스 그룹 간격 조정 */
.hc-register-form .hc-checkbox-group {
    margin-bottom: 16px;
}

/* 회원가입 페이지에서 도움말 텍스트 스타일 */
.hc-register-form .hc-form-help {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
}

/* 브라우저 호환성을 위한 대체 스타일 */
.hc-register-form .hc-checkbox-group.terms-agreement {
    background: rgba(102, 126, 234, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 16px;
}

/* 비밀번호 확인 필드 스타일 */
.hc-register-form .hc-form-group.confirm-password-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

/* 회원가입 페이지에서 소셜 로그인 버튼 텍스트 변경 */
.hc-register-form .hc-social-btn {
    /* 소셜 회원가입 버튼 스타일 */
}

/* 회원가입 페이지에서 로그인 링크 스타일 */
.hc-register-form .hc-login-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* 회원가입 페이지에서 에러 메시지 스타일 */
.hc-register-form .hc-error-message {
    margin-bottom: 20px;
}

/* 회원가입 페이지에서 성공 메시지 스타일 */
.hc-register-form .hc-success-message {
    margin-bottom: 20px;
}

/* 회원가입 페이지에서 로딩 오버레이 스타일 */
.hc-register-form + .hc-loading-overlay {
    background: rgba(255, 255, 255, 0.95);
}

/* 회원가입 페이지에서 폼 그룹 간격 조정 */
.hc-register-form .hc-form-group {
    margin-bottom: 20px;
}

/* 회원가입 페이지에서 마지막 폼 그룹 (버튼) 간격 조정 */
.hc-register-form .hc-form-group:last-of-type {
    margin-bottom: 24px;
}

/* 약관 텍스트 스타일 */
.hc-terms {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

.hc-terms a {
    color: #667eea;
    text-decoration: none;
}

.hc-terms a:hover {
    text-decoration: underline;
}

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

.hc-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    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) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.hc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.hc-modal-close {
    color: #666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.hc-modal-close:hover,
.hc-modal-close:focus {
    color: #333;
    background-color: #e0e0e0;
}

.hc-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
}

.hc-modal-body::-webkit-scrollbar {
    width: 6px;
}

.hc-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.hc-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.hc-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 태블릿 반응형 */
@media (max-width: 768px) {
    .hc-login-page,
    .hc-register-page,
    .hc-reset-page {
        padding: 5px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hc-login-container {
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .hc-login-form-wrapper {
        padding: 24px 20px;
        border-radius: 10px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .hc-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .hc-modal-header {
        padding: 16px 20px;
    }
    
    .hc-modal-header h3 {
        font-size: 16px;
    }
    
    .hc-modal-body {
        padding: 20px;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .hc-modal-content {
        width: 98%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .hc-modal-header {
        padding: 14px 16px;
    }
    
    .hc-modal-body {
        padding: 16px;
        max-height: 75vh;
    }
}

/* 아이폰 16 프로 최적화 */
@media (max-width: 393px) {
    .hc-login-page,
    .hc-register-page,
    .hc-reset-page {
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hc-login-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
    
    .hc-login-form-wrapper {
        padding: 20px 15px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}