/* Паззл-капча */

.puzzle-captcha {
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.puzzle-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #3a3a3a;
    margin-bottom: 15px;
}

.puzzle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00ff88 0%, #00cc6a 25%, #0099ff 50%, #6600ff 75%, #ff0066 100%);
    opacity: 0.3;
}

.puzzle-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
}

.puzzle-slot {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 3px dashed rgba(0, 255, 136, 0.5);
    border-radius: 8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.2);
}

.puzzle-piece {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ff88 0%, #00cc6a 50%, #0099ff 100%);
    border-radius: 8px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    cursor: grab;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    border: 2px solid #00ff88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 100;
}

.puzzle-piece:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
}

.puzzle-piece.correct {
    cursor: default;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
    animation: success-pulse 0.6s ease;
}

@keyframes success-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

.puzzle-slider {
    width: 100%;
    height: 45px;
    background: #1a1a1a;
    border-radius: 25px;
    border: 2px solid #3a3a3a;
    position: relative;
    overflow: hidden;
}

.puzzle-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 25px;
    transition: width 0.1s ease;
}

.puzzle-slider-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background: #00ff88;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
    transition: all 0.2s ease;
    z-index: 10;
}

.puzzle-slider-handle:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.puzzle-text {
    text-align: center;
    margin-top: 10px;
    color: #888;
    font-size: 14px;
}

.puzzle-text.success {
    color: #00ff88;
    font-weight: bold;
}

.puzzle-text.error {
    color: #ff4444;
    font-weight: bold;
}

.puzzle-captcha.verified .puzzle-container {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.puzzle-captcha.verified .puzzle-slider {
    border-color: #00ff88;
}

