/* =============================================================
   Slide Puzzle CAPTCHA — OJS Login
   Layout 2-kolom: form kiri | panel CAPTCHA kanan
   ============================================================= */

/* ── Notifikasi instruksi ────────────────────────────────────── */
.sc-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #eef4fb;
    border: 1px solid #90bce8;
    border-radius: 8px;
    font-size: 13px;
    color: #1a3a5c;
    line-height: 1.6;
    margin-bottom: 14px;
}

.sc-notice-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #1565c0;
}

/* ── Layout wrapper ─────────────────────────────────────────── */
.sc-page-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 4px;
}

.sc-form-col {
    flex: 1 1 0;
    min-width: 240px;
}

.sc-captcha-col {
    flex: 0 0 338px;
    width: 338px;
}

/* ── Panel utama ─────────────────────────────────────────────── */
.sc-panel {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-family: inherit;
}

/* ── Header panel ────────────────────────────────────────────── */
.sc-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
    color: #fff;
}

.sc-panel-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.sc-panel-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sc-panel-title strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.sc-panel-title span {
    font-size: 11px;
    opacity: 0.88;
}

.sc-refresh {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s, transform 0.3s;
    flex-shrink: 0;
    padding: 0;
}

.sc-refresh:hover {
    background: rgba(255,255,255,0.32);
    transform: rotate(180deg);
}

/* ── Area puzzle ─────────────────────────────────────────────── */
.sc-puzzle-area {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    border-bottom: 1px solid #e8ecf0;
}

.sc-bg-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.sc-piece-img {
    position: absolute;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(2px 3px 6px rgba(0,0,0,0.40));
    will-change: left;
}

/* ── Slider ──────────────────────────────────────────────────── */
.sc-slider-wrap {
    padding: 12px 14px 8px;
    background: #f6f8fa;
    border-bottom: 1px solid #e8ecf0;
}

.sc-track {
    position: relative;
    height: 44px;
    background: #e0e7ef;
    border-radius: 22px;
    overflow: hidden;
    cursor: ew-resize;
}

.sc-track-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 22px;
    background: linear-gradient(90deg, #42a5f5, #1565c0);
    border-radius: 22px;
    pointer-events: none;
    transition: background 0.35s;
}

.sc-handle {
    position: absolute;
    top: 2px;
    left: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    z-index: 2;
    transition: transform 0.1s;
    outline: none;
}

.sc-handle:focus-visible {
    box-shadow: 0 0 0 3px rgba(21,101,192,0.40);
}

.sc-handle-arrows {
    color: #1565c0;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.sc-handle.sc-handle-dragging {
    cursor: grabbing;
    transform: scale(1.10);
}

/* ── Instruksi ───────────────────────────────────────────────── */
.sc-instructions {
    padding: 10px 14px 6px;
    background: #f6f8fa;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sc-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #444;
    line-height: 1.4;
}

.sc-step-num {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1565c0;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Status bar ──────────────────────────────────────────────── */
.sc-statusbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    line-height: 1.4;
    border-top: 1px solid transparent;
    transition: opacity 0.25s;
}

.sc-statusbar-hidden {
    opacity: 0;
    padding: 3px 14px;
    border-color: transparent;
}

.sc-statusbar-error {
    background: #fff5f5;
    border-color: #fca5a5;
    color: #b91c1c;
}

.sc-statusbar-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
    font-weight: 600;
}

.sc-sb-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Responsive: mobile → kolom tunggal ─────────────────────── */
@media (max-width: 760px) {
    .sc-page-layout {
        flex-direction: column;
        gap: 20px;
    }

    .sc-captcha-col {
        width: 100%;
        flex: none;
    }
}
