/* Custom CAPTCHA Styles */

.custom-captcha-puzzle {
    padding: 1.5rem;
    background: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    text-align: center;
}

.puzzle-instructions {
    margin-bottom: 1.5rem;
}

.puzzle-instructions i {
    font-size: 2rem;
    color: var(--accent, #0d6efd);
    margin-bottom: 0.5rem;
}

.puzzle-instructions p {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary, #212529);
}

.puzzle-container {
    position: relative;
    margin: 1rem 0;
}

.puzzle-image {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.puzzle-slider-container {
    position: relative;
    width: 100%;
    height: 50px;
}

.puzzle-slider-track {
    width: 100%;
    height: 50px;
    background: #f0f0f0;
    border-radius: 25px;
    position: relative;
    border: 2px solid #ddd;
}

.puzzle-slider-button {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--accent, #0d6efd);
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.puzzle-slider-button:hover {
    background: var(--accent-hover, #0b5ed7);
}

.puzzle-slider-button:active {
    cursor: grabbing;
}

.puzzle-status {
    margin-top: 1rem;
    font-size: 0.875rem;
    min-height: 1.5rem;
}

.puzzle-status.verified {
    color: #198754;
    font-weight: 500;
}

/* Button Press CAPTCHA */

.custom-captcha-button {
    padding: 1.5rem;
    background: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    text-align: center;
}

.button-instructions {
    margin-bottom: 1.5rem;
}

.button-instructions i {
    font-size: 2rem;
    color: var(--accent, #0d6efd);
    margin-bottom: 0.5rem;
}

.button-instructions p {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary, #212529);
}

.captcha-button {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 60px;
    background: var(--accent, #0d6efd);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.captcha-button:hover {
    background: var(--accent-hover, #0b5ed7);
}

.captcha-button.pressing {
    background: #198754;
}

.captcha-button.verified {
    background: #198754;
    cursor: default;
}

.button-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.1s linear;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-status {
    margin-top: 1rem;
    font-size: 0.875rem;
    min-height: 1.5rem;
}

.button-status.verified {
    color: #198754;
    font-weight: 500;
}

/* Dark theme support */
[data-theme="dark"] .custom-captcha-puzzle,
[data-theme="dark"] .custom-captcha-button {
    background: var(--bg-color-dark, #1a1a1a);
    border-color: var(--border-color-dark, #333);
}

[data-theme="dark"] .puzzle-instructions p,
[data-theme="dark"] .button-instructions p {
    color: var(--text-primary-dark, #fff);
}

[data-theme="dark"] .puzzle-slider-track {
    background: #2a2a2a;
    border-color: #444;
}

