
.preloader-captcha{ 
    display:flex; 
    justify-content:center; 
    align-items:center; 
    height:100vh; 
    width:100%; 
    background: rgba(0, 0, 0, 56%);
    background-size: 100% 100%;
    position:fixed; 
    top:0; 
    left:0; 
    opacity: 1;
    z-index:1965; 
    transition: opacity 1.5s linear;                    
}
.preloader-captcha.fade-out{ 
    opacity: 0;
    visibility: hidden;
}
.captcha-container {
    margin: 15px 0;
}
.captcha-box {
    border: 2px solid #dfe1e5;
    border-radius: 8px;
    padding: 15px;
    background: #f5f7fb;
    max-width: 450px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.captcha-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #202124;
}
.captcha-refresh {
    background: none;
    border: none;
    color: var(--bs-primary);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.captcha-refresh:hover {
    background-color: #e8f0fe;
}
.captcha-image-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.captcha-image {
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 8px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    width: 100%;
}
#captcha-img {
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
    object-fit: contain;
    height: auto;
    display: block;
}
#captcha-img:hover {
    opacity: 0.9;
}
.captcha-input-container {
    position: relative;
}
.captcha-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
.captcha-input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb-shadow));
}
.captcha-input::placeholder {
    color: #999999;
}

.captcha-error {
    color: #d93025;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.captcha-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #5f6368;
}

.captcha-close {
    color: var(--bs-white);
}
.captcha-privacy {
    color: var(--bs-white);
    cursor: pointer;
    text-decoration: none;
}

.captcha-privacy:hover {
    text-decoration: underline;
}

/* Efectos de carga */
.captcha-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Iconos (puedes usar Font Awesome o SVG) */
.captcha-icon {
    width: 16px;
    height: 16px;
}
/* Agregar al CSS existente */
.captcha-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.captcha-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Responsive */
@media (max-width: 480px) {
    .captcha-box {
        max-width: 100%;
    }
    
    .captcha-image-container {
        flex-direction: column;
        align-items: stretch;
    }
}