/* ===================================================
   CAPTCHA & LOGIN LOCK - captcha.css
   ALF BOM ECN - Custom Security Layer
   =================================================== */

/* ---------- CAPTCHA BOX ---------- */
.captcha-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    display: none; /* shown via JS after 3 wrong passwords */
}

.captcha-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

/* Canvas where CAPTCHA image is drawn */
#captchaCanvas {
    display: block;
    width: 100%;
    height: 58px;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: default;
    user-select: none;
}

/* Input + Refresh button row */
.captcha-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.captcha-input-row input {
    flex: 1;
    margin-bottom: 0 !important;
}

#refreshCaptchaBtn {
    padding: 8px 14px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    white-space: nowrap;
}

#refreshCaptchaBtn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ---------- ATTEMPT DOTS ---------- */
.attempt-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    align-items: center;
}

.attempt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.25s;
}

.attempt-dot.fail {
    background: #f5365c; /* red - wrong attempt */
}

.attempt-dot.captcha-fail {
    background: #fb6340; /* orange - wrong captcha */
}

/* ---------- ALERT MESSAGES ---------- */
.captcha-alert {
    font-size: 13px;
    padding: 9px 13px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    font-weight: 500;
}

.captcha-alert.error {
    background: rgba(245, 54, 92, 0.18);
    color: #f5365c;
    border: 1px solid rgba(245, 54, 92, 0.35);
}

.captcha-alert.warning {
    background: rgba(251, 99, 64, 0.18);
    color: #fb8c00;
    border: 1px solid rgba(251, 99, 64, 0.35);
}

.captcha-alert.success {
    background: rgba(45, 206, 137, 0.18);
    color: #2dce89;
    border: 1px solid rgba(45, 206, 137, 0.35);
}

/* ---------- LOCK OVERLAY ---------- */
#lockOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 30, 0.92);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

#lockOverlay.active {
    display: flex;
}

.lock-icon-wrap {
    font-size: 56px;
    margin-bottom: 16px;
    animation: pulse-lock 1.5s ease-in-out infinite;
}

@keyframes pulse-lock {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.1); opacity: 0.75; }
}

.lock-heading {
    font-size: 22px;
    font-weight: 700;
    color: #f5365c;
    margin-bottom: 6px;
}

.lock-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.lock-countdown {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    margin-bottom: 12px;
}

.lock-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}
