/* ==========================================================================
   Theme-E Slider Puzzle Captcha Overlay Modal
   Matches Photo 2 (theme-e.anotechsolutions.shop) 100% Pixel-Perfect
   ========================================================================== */

/* Captcha Backdrop Overlay */
.login-captcha-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(3, 10, 30, 0.82) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.login-captcha-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Captcha Modal Dialog Box */
.login-captcha-card {
    width: 310px !important;
    max-width: 90vw !important;
    background: #05184d !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85) !important;
    overflow: hidden !important;
    position: relative !important;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    user-select: none !important;
}

.login-captcha-overlay.active .login-captcha-card {
    transform: scale(1) !important;
}

/* Image Viewport Canvas Box */
.captcha-image-box {
    width: 310px !important;
    height: 175px !important;
    position: relative !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Background Image Canvas */
.captcha-bg-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Target Slot Outline (Cutout) */
.captcha-target-slot {
    position: absolute !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8) !important;
    border-radius: 6px !important;
    z-index: 2 !important;
}

/* Moveable Puzzle Piece */
.captcha-puzzle-piece {
    position: absolute !important;
    width: 44px !important;
    height: 44px !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7) !important;
    border-radius: 6px !important;
    z-index: 3 !important;
    background-size: 310px 175px !important;
    background-repeat: no-repeat !important;
}

/* Status Tip Message Overlay */
.captcha-status-msg {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    opacity: 0;
    transition: opacity 0.2s ease !important;
}

.captcha-status-msg.success {
    background: rgba(34, 197, 94, 0.9) !important;
    opacity: 1 !important;
}

.captcha-status-msg.fail {
    background: rgba(239, 68, 68, 0.9) !important;
    opacity: 1 !important;
}

/* Slider Track Bar */
.captcha-slider-track {
    width: 310px !important;
    height: 40px !important;
    background: #f1f5f9 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.captcha-slider-text {
    font-size: 11.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    user-select: none !important;
    pointer-events: none !important;
}

.captcha-slider-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 0px;
    background: #a7f3d0 !important;
    border-right: 1px solid #10b981 !important;
}

/* Slider Drag Knob Handle */
.captcha-slider-knob {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 44px !important;
    height: 40px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: grab !important;
    z-index: 5 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #1e293b !important;
    touch-action: none !important;
}

.captcha-slider-knob:active {
    cursor: grabbing !important;
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Bottom Action Bar */
.captcha-action-bar {
    width: 310px !important;
    height: 38px !important;
    background: #04123b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.captcha-refresh-btn,
.captcha-close-btn {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.captcha-refresh-btn:hover,
.captcha-close-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.captcha-refresh-btn svg,
.captcha-close-btn svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2.2 !important;
}
