/**
 * PASS 본인인증 스타일
 *
 * @package Doctor_Modu
 * @subpackage Auth
 */

/* PASS 인증 섹션 */
.pass-auth-section {
    position: relative;
}

/* PASS 인증 완료 상태 */
.pass-auth-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
}

.pass-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.pass-auth-success strong {
    display: block;
    color: #2e7d32;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.pass-auth-success p {
    color: #388e3c;
    font-size: 0.875rem;
    margin: 0;
}

/* PASS 인증 버튼 */
#pass-auth-btn {
    transition: all 0.3s ease;
}

#pass-auth-btn:hover {
    transform: translateY(-2px);
}

#pass-auth-btn:active {
    transform: translateY(0);
}

#pass-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* PASS 인증된 필드 */
.pass-verified-field {
    background-color: #f0f7ff !important;
    border-color: #90caf9 !important;
    cursor: not-allowed;
}

.pass-verified-field:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .pass-auth-success {
        padding: 1.5rem;
    }

    .pass-success-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .pass-auth-success strong {
        font-size: 1rem;
    }

    .pass-auth-success p {
        font-size: 0.8125rem;
    }

    #pass-auth-btn {
        width: 100%;
        justify-content: center;
    }
}

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

.pass-auth-section {
    animation: fadeIn 0.3s ease-out;
}

/* 로딩 스피너 */
#pass-auth-btn.loading {
    position: relative;
    color: transparent !important;
}

#pass-auth-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* 인증 완료 배지 */
.pass-verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: #4caf50;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.pass-verified-badge svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* 알림 메시지 */
.pass-auth-notice {
    padding: 12px 16px;
    background-color: #fff9c4;
    border-left: 4px solid #fbc02d;
    border-radius: 4px;
    margin-top: 16px;
    font-size: 0.875rem;
    color: #f57f17;
}

.pass-auth-notice strong {
    display: block;
    margin-bottom: 4px;
    color: #f57f17;
}

/* 에러 메시지 */
.pass-auth-error {
    padding: 12px 16px;
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    margin-top: 16px;
    font-size: 0.875rem;
    color: #c62828;
}

.pass-auth-error strong {
    display: block;
    margin-bottom: 4px;
    color: #c62828;
}
