/* HLS Lock Screen — Frontend v1.06 */

/* Page content wrapper — gets blurred when locked */
#hls-page-content {
    transition: filter 0.3s ease;
}
#hls-page-content.hls-blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* Full-screen dark overlay */
#hls-lockscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.5s ease;
}
#hls-lockscreen-overlay.hls-fade-out {
    opacity: 0;
    pointer-events: none;
}

/* The unlock card — centered in viewport */
.hls-unlock-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

.hls-unlock-logo { font-size: 38px; margin-bottom: 12px; line-height: 1; }

.hls-unlock-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    line-height: 1.3 !important;
}

.hls-unlock-sub {
    font-size: 14px !important;
    color: #64748b !important;
    margin: 0 0 28px !important;
    line-height: 1.55 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.hls-unlock-form { text-align: left; }
.hls-field { margin-bottom: 16px; }

.hls-field label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.hls-input {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}
.hls-input:focus {
    border-color: #4f6ef7 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(79,110,247,0.12) !important;
}
.hls-input.hls-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}

.hls-error-msg {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    border-radius: 7px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    margin-bottom: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    text-align: left !important;
}

.hls-unlock-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    margin-top: 6px !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35) !important;
    letter-spacing: 0.2px !important;
}
.hls-unlock-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,0.45) !important;
}
.hls-unlock-btn:active { transform: translateY(0) !important; }
.hls-unlock-btn:disabled { opacity: 0.6 !important; cursor: not-allowed !important; transform: none !important; }

/* Validating state */
.hls-validating { text-align: center; padding: 12px 0 4px; }
.hls-spinner { width: 54px; height: 54px; margin-bottom: 14px; }
.hls-validating-text {
    font-size: 15px !important;
    color: #64748b !important;
    margin: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    animation: hls-pulse 1.4s ease-in-out infinite;
}

@keyframes hls-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
