.captcha-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.captcha-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-label i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.captcha-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.captcha-image {
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.captcha-image:hover {
    transform: scale(1.02);
}

.captcha-refresh-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
    width: 100%;
}

.captcha-refresh-btn:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4);
}

.captcha-refresh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.captcha-refresh-btn i {
    font-size: 1rem;
    transition: transform 0.6s ease;
}

.captcha-refresh-btn:hover i {
    transform: rotate(180deg);
}

.captcha-refresh-btn.refreshing i {
    animation: spin 0.6s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.captcha-input-wrapper {
    position: relative;
}

.captcha-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: white;
}

.captcha-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.captcha-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.captcha-input.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.captcha-help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.captcha-help-text i {
    font-size: 0.9rem;
}

.captcha-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.captcha-error i {
    font-size: 1rem;
}


.captcha-loading {
    opacity: 0.6;
    pointer-events: none;
}

.captcha-input::placeholder {
    letter-spacing: normal;
    text-transform: none;
    font-weight: normal;
}
