/* NetzKiste.com - Captcha Animations */

/* Spinning Animation für Refresh Button */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Captcha Container Verbesserungen */
.captcha-container {
    margin: 1rem 0;
    position: relative;
}

.captcha-question {
    margin-bottom: 0.5rem;
}

.captcha-math {
    background: rgba(104, 79, 163, 0.1);
    border: 1px solid rgba(104, 79, 163, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.captcha-math:hover {
    background: rgba(104, 79, 163, 0.15);
    border-color: rgba(104, 79, 163, 0.4);
}

.captcha-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #684FA3;
    transition: color 0.3s ease;
}

.captcha-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.captcha-input input {
    flex: 1;
    transition: all 0.3s ease;
}

.captcha-input input:focus {
    border-color: #684FA3;
    box-shadow: 0 0 0 3px rgba(104, 79, 163, 0.3);
}

.captcha-refresh {
    background: #684FA3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.captcha-refresh:hover:not(:disabled) {
    background: #5a3f8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(104, 79, 163, 0.3);
}

.captcha-refresh:disabled {
    background: #4a3a7d;
    cursor: not-allowed;
    opacity: 0.7;
}

.captcha-refresh svg {
    width: 16px;
    height: 16px;
}

/* Captcha Timeout Warning */
.captcha-timeout-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #fbbf24;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.captcha-timeout-warning.show {
    opacity: 1;
    transform: translateY(0);
}

/* Captcha Success Animation */
.captcha-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #22c55e;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.captcha-success.show {
    opacity: 1;
    transform: translateY(0);
}

/* Captcha Error Animation */
.captcha-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.captcha-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 640px) {
    .captcha-input {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .captcha-refresh {
        width: 100%;
        height: 44px;
    }
    
    .captcha-math {
        padding: 1rem;
    }
    
    .captcha-text {
        font-size: 1rem;
    }
}
