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

/* 회원가입 페이지 기본 스타일 */
.hc-register-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: #f8fafc; /* 기본 배경색 */
    position: relative;
    overflow: hidden;
}

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

.hc-login-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    position: relative;
    border: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
    overflow: hidden;
    color: #333;
}

/* 로고 스타일 */
.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: #667eea;
    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;
}

.hc-logo-text-only {
    display: inline-block;
    text-decoration: none;
    color: #333;
}

.hc-logo-text-only .hc-logo-text {
    font-size: 28px;
    font-weight: 700;
}

.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-register-form {
    margin: 0;
}

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

/* 라벨 스타일 - 텍스트 표시 보장 */
.hc-form-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
}

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

.hc-label-text {
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    display: inline !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 강제 라벨 텍스트 표시 */
.hc-form-label .hc-label-text {
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    display: inline !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 1 !important;
}

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

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

.hc-password-wrapper .hc-form-input {
    padding-right: 70px;
}

.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::placeholder {
    color: #9ca3af;
}



/* 도움말 텍스트 */
.hc-form-help {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
    line-height: 1.5;
}

/* 필수/선택 표시 */
.hc-required {
    color: #ef4444;
    font-weight: 500;
}

.hc-optional {
    color: #9ca3af;
    font-weight: 400;
}

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

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

.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;
    margin-top: 4px;
    color: #666;
}

/* 비밀번호 일치 표시 */
.hc-password-match {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.hc-password-match.match {
    color: #10b981;
}

.hc-password-match.no-match {
    color: #ef4444;
}

/* 약관 동의 섹션 */
.hc-terms-group {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.hc-terms-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.hc-terms-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 체크박스 스타일 */
.hc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    min-height: 24px;
}

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

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

.hc-checkbox-text strong {
    font-weight: 600;
}

.hc-terms-link,
.hc-privacy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.hc-terms-link:hover,
.hc-privacy-link:hover {
    text-decoration: underline;
}

/* 버튼 스타일 - 텍스트 표시 보장 */
.hc-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    color: #ffffff;
    text-indent: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hc-btn-text {
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    display: inline !important;
}

.hc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

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

.hc-btn-block {
    width: 100%;
}

/* 링크 스타일 */
.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-section {
    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;
}

.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;
    min-height: 48px;
}

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

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

.hc-social-text {
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    display: inline !important;
}

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

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

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

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

/* 로그인 링크 섹션 */
.hc-login-text {
    color: #666;
    margin: 0;
}

/* 메시지 스타일 */
.hc-message-container {
    margin-bottom: 20px;
}

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

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

/* 로딩 오버레이 */
.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: 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-template-modern .hc-login-form-wrapper {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hc-template-glass .hc-login-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hc-template-glass .hc-form-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.hc-template-glass .hc-terms-group {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.hc-template-glass .hc-label-icon {
    color: #667eea;
}

.hc-template-glass .hc-form-input {
    color: #1f2937;
}

.hc-template-glass .hc-form-input::placeholder {
    color: #9ca3af;
}

.hc-template-glass .hc-social-btn {
    color: #333;
    background: rgba(255, 255, 255, 0.8);
}

.hc-template-glass .hc-btn {
    color: #ffffff;
}

/* 다크모드 스타일 */
.hc-template-dark .hc-login-form-wrapper {
    background: #ffffff;
}

.hc-template-dark .hc-form-input {
    background: #f8f8f8;
    border-color: #e0e0e0;
    color: #1f2937;
}

.hc-template-dark .hc-form-input::placeholder {
    color: #9ca3af;
}

.hc-template-dark .hc-terms-group {
    background: #ffffff;
    border-color: #e0e0e0;
}

.hc-template-dark .hc-divider span {
    background: #ffffff;
    color: #666;
}

.hc-template-dark .hc-social-btn {
    background: white;
    border-color: #e0e0e0;
    color: #333;
}

.hc-template-elegant .hc-login-form-wrapper {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

.hc-template-elegant .hc-form-input {
    border-color: #d1d5db;
    background: #fafafa;
}

.hc-template-elegant .hc-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .hc-register-page {
        padding: 16px;
    }
    
    .hc-login-form-wrapper {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .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;
    }
    
    .hc-btn {
        font-size: 16px;
        padding: 12px;
    }
    
    .hc-social-btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .hc-terms-group {
        padding: 12px;
    }
}

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

.hc-checkbox: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-checkbox {
        border-width: 3px;
    }
}

/* 모션 감소 설정 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* 인쇄 스타일 */
@media print {
    .hc-register-page {
        background: white;
    }
    
    .hc-login-form-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .hc-btn,
    .hc-social-section {
        display: none;
    }
}

/* 라벨 텍스트 강제 표시 - 최우선 적용 */
.hc-register-page .hc-form-label .hc-label-text,
.hc-register-page .hc-label-text {
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    display: inline !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 999 !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: normal !important;
}

/* 모든 텍스트 숨김 방지 */
.hc-register-page * {
    text-indent: 0 !important;
}

.hc-register-page .hc-form-label * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* 필수 표시 텍스트 */
.hc-required-text {
    color: #ef4444 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

/* 비밀번호 필드 특별 스타일 */
.hc-password-wrapper {
    position: relative;
}

.hc-password-wrapper .hc-form-input {
    padding-right: 60px;
}

/* 비밀번호 토글 버튼 */
.hc-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    user-select: none;
    min-width: 50px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    visibility: visible;
    opacity: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hc-password-toggle:hover {
    color: #667eea;
    background-color: #e0e7ff;
    border-color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.hc-password-toggle:focus {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

.hc-toggle-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 입력하지 않은 필드 하이라이트 */
.hc-form-input:invalid:not(:placeholder-shown),
.hc-form-input.hc-error-highlight {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    background-color: #fef2f2 !important;
    animation: shake 0.5s ease-in-out !important;
}

.hc-form-input:invalid:not(:placeholder-shown) + .hc-required-text,
.hc-form-input.hc-error-highlight + .hc-required-text {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

/* 흔들림 애니메이션 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 모달 스타일 */
.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);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.hc-modal-content {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

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

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

.hc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hc-modal-close:hover {
    background-color: #e5e7eb;
    color: #374151;
}

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

.hc-modal-body h1,
.hc-modal-body h2,
.hc-modal-body h3,
.hc-modal-body h4,
.hc-modal-body h5,
.hc-modal-body h6 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #111827;
}

.hc-modal-body p {
    margin-bottom: 16px;
}

.hc-modal-body ul,
.hc-modal-body ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.hc-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    text-align: right;
}

/* 모달 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 약관 링크 스타일 */
.hc-terms-link,
.hc-privacy-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    margin: 0;
    font-family: inherit;
}

.hc-terms-link:hover,
.hc-privacy-link:hover {
    color: #5a67d8;
    text-decoration: none;
}

/* 버튼 기본 스타일 */
.hc-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #667eea;
    color: white;
}

.hc-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hc-btn-text {
    display: inline-block;
    vertical-align: middle;
}

.hc-btn-primary {
    background: #667eea;
    color: white;
}

.hc-btn-primary:hover {
    background: #5a67d8;
    color: white !important;
}



