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

/* 비밀번호 재설정 페이지 기본 스타일 */
.hc-reset-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-reset-page.gradient-bg,
.hc-reset-page.solid-bg,
.hc-reset-page.image-bg {
    background: #ffffff;
}

.hc-reset-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;
    line-height: 1.5;
}

/* 비밀번호 재설정 폼 스타일 */

/* 메시지 컨테이너 */
.hc-message-container {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
}

.hc-message-container .hc-message {
    margin: 0;
    font-weight: 500;
}

.hc-message-container .hc-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.hc-message-container .hc-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* 비밀번호 변경 폼 */
.hc-password-change-form {
    width: 100%;
}

/* 비밀번호 재설정 이메일 폼 */
.hc-reset-form {
    width: 100%;
}

/* 비밀번호 일치 표시 */
.hc-password-match {
    margin-top: 8px;
}

.hc-match-text {
    font-size: 12px;
    color: #6b7280;
}

.hc-match-label.match {
    color: #10b981;
    font-weight: 500;
}

.hc-match-label.no-match {
    color: #ef4444;
    font-weight: 500;
}

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

.hc-strength-meter {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

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

.hc-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.hc-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.hc-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

.hc-strength-text {
    font-size: 11px;
    color: #6b7280;
}

/* 로딩 오버레이 */
.hc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

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

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

.hc-loading-overlay p {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    /* 전체 페이지 중앙 정렬 */
    .hc-reset-page {
        width: 100% !important;
        min-height: 100vh !important;
        padding: 20px 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* 컨테이너 중앙 정렬 */
    .hc-login-container {
        width: 100% !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
    }
    
    /* 폼 래퍼 최적화 */
    .hc-login-form-wrapper {
        width: 100% !important;
        max-width: 350px !important;
        margin: 20px auto !important;
        padding: 30px 25px !important;
        border-radius: 16px !important;
    }
    
    /* 메시지 컨테이너 */
    .hc-message-container {
        margin-bottom: 16px;
        padding: 10px 14px;
    }
    
    /* 로딩 오버레이 */
    .hc-loading-overlay {
        padding: 20px;
    }
    
    .hc-loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
        margin-bottom: 12px;
    }
    
    /* 터치 영역 확대 */
    .hc-btn {
        min-height: 44px !important;
        padding: 12px 16px !important;
    }
    
    .hc-form-input {
        min-height: 44px !important;
        padding: 12px 15px !important;
    }
    
    /* iOS 자동 줌 방지 */
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 16px !important;
    }
    
    /* 아이폰 X 이상 노치 대응 */
    @supports (padding: max(0px)) {
        .hc-reset-page {
            padding-left: max(0px, env(safe-area-inset-left)) !important;
            padding-right: max(0px, env(safe-area-inset-right)) !important;
        }
    }
}

/* 비밀번호 재설정 페이지에서 로그인 링크 스타일 */
.hc-reset-form .hc-login-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

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

/* 반응형 디자인 */
@media (max-width: 480px) {
    .hc-reset-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;
    }
}

@media (max-width: 360px) {
    .hc-login-form-wrapper {
        padding: 20px;
    }
}

/* 애니메이션 */
@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: 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-info-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #4c51bf;
    line-height: 1.5;
}

.hc-info-box p {
    margin: 0;
}

/* 패스워드 강도 표시기 */
.hc-password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.hc-password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hc-password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.hc-password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.hc-password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}